Table of Contents

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

commandBuilder CliCommandBuilder

A command builder which builds a Command.

Type Parameters

TDefinition

The 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

definitionType Type

The type of the definition class.

commandBuilder CliCommandBuilder

A command builder which builds a Command.