A client that wraps the Node.js console and provides additional methods for logging, error handling, and user prompts.
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.
ReadonlyendEnd 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.
ReadonlyforkFork the state and execute a new set of commands with the same context.
The commands to execute.
OptionalinitialData?: unknownThe initial data to pass to the forked state. If not provided, the current data will be used.
OptionaloptionValues?: OptionValues<Options to merge/override the current options.
OptionalparamValues?: RouteParamsParameters to merge/override the current parameters.
The data from the last command.
ReadonlynextContinue 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.
Readonlystart
Execution state management.
The
Stateis 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.