The client for logging and I/O operations.
Information about the current command module being executed.
Information about all command modules loaded for the current execution.
Runtime and configuration context for the command execution.
The current step/command index within the command chain.
An OptionsGetter
to dynamically retrieve options.
Resolved route parameters from parameterized filenames, e.g., id
from
commands/get/[id].ts
.
Readonly
endEnd execution, skipping any remaining steps, and return the current or provided data.
The data to return. Defaults to the current data.
The data from the last command.
Readonly
forkFork the state and execute a new set of commands with the same context.
The commands to execute.
Optional
initialData?: unknownThe initial data to pass to the forked state. If not provided, the current data will be used.
Optional
optionValues?: OptionValues<Options to merge/override the current options.
Optional
paramValues?: ParamsParameters to merge/override the current parameters.
The data from the last command.
Readonly
nextContinue to the next step in the command chain or end the steps if there are no more steps.
The data to pass to the next step. If not provided, the current data will be used.
The data from the last command.
Readonly
start
Execution state management.
The
State
is responsible for managing the state of command execution. It provides mechanisms to progress through command execution, handle state transitions, and manage the lifecycle of command data.