AddBranch<TSettings>(string, Action<IConfigurator<TSettings>>) Method
Adds a command branch.
IBranchConfigurator AddBranch<TSettings>(string name, Action<IConfigurator<TSettings>> action)
where TSettings : CommandSettings
- Namespace
- Spectre
.Console .Cli - Containing Type
- IConfigurator
Parameters
-
TSettings
- The command setting type.
Parameters
- string name
- The name of the command branch.
-
Action
<IConfigurator <TSettings> > action - The command branch configurator.