The client for the command.
The current command.
The commands that will be executed.
The context for the command.
The current data.
The current step index.
An OptionsGetter
to dynamically retrieve options.
The current params, including params from previous steps.
Readonly
endReturn data and end the steps.
Optional
data: unknownThe data to return.
Readonly
forkFork the state and execute a new set of commands with the same context.
The data from the last command.
Readonly
nextModify the data and continue to the next step if there is one, otherwise return the data.
Optional
data: unknownThe data to pass to the next step or return.
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.