Method WithCommand
WithCommand(Command)
Creates a new context with a different command, preserving all other fields.
public CommandContext WithCommand(Command command)
Parameters
commandCommandThe new command.
Returns
- CommandContext
A new CommandContext with the specified command.