Console/ForgeTrust.Runnable.Console/ChainedCommand.cs

ChainedCommand

Type

ChainedCommand

A command that can execute a sequence of other commands. Parameters and options defined on the parent command are automatically forwarded to the child commands when they share the same property name. Required parameters of child commands are validated before any command in the chain is executed.
Method

Configure(CommandChainBuilder)

Configures the sequence of commands to execute.
Type

CommandChainBuilder

Fluent builder used to configure the chain of commands.
Method

Add<TCommand>()

Adds a command to the execution chain.
Method

AddIf<TCommand>(Func<bool>)

Adds a command to the chain that will execute only when returns true.