Skip to main content

XpmActionCommands type alias

Represents a list of action command strings.

Signature

export type XpmActionCommands = string[];

Remarks

Action commands are always stored as an array of strings after Liquid template evaluation, even if the original definition in package.json was a single string.

Each string represents a complete command to be executed in sequence. Commands are typically shell commands but can be any executable that can be invoked from the command line.

The array structure enables:

  • Multi-step actions: Execute multiple commands in order.
  • Error handling: Stop execution on first command failure (default behavior).
  • Logging: Report progress as each command completes.

Commands have access to the full shell environment and can reference environment variables, pipe outputs, or chain operations using standard shell syntax (&&, ||, |, etc.).


Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.