CliCommandBuilder.Register Method
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Register()
Registers this command builder so that it can be found by the definition class, and it can be found by the parent definition class if it's a nested/external child.
public void Register()
Register<TDefinition>(CliCommandBuilder)
Registers a command builder so that it can be found by the definition class.
public static void Register<TDefinition>(CliCommandBuilder commandBuilder)
Parameters
commandBuilderCliCommandBuilderA command builder which builds a Command.
Type Parameters
TDefinitionThe definition class.
Register(Type, CliCommandBuilder)
Registers a command builder so that it can be found by the definition class.
public static void Register(Type definitionType, CliCommandBuilder commandBuilder)
Parameters
definitionTypeTypeThe type of the definition class.
commandBuilderCliCommandBuilderA command builder which builds a Command.