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