IUnsafeBranchConfigurator

Represents an unsafe configurator for a branch.

Represents an unsafe configurator for a branch.

Methods

public IBranchConfigurator AddBranch(string name, Type settings, Action<IUnsafeBranchConfigurator> action)

Adds a command branch.

Parameters:

name (string)
The name of the command branch.
settings (Type)
The command setting type.
action (Action<IUnsafeBranchConfigurator>)
The command branch configurator.

Returns:

A branch configurator that can be used to configure the branch further.

public ICommandConfigurator AddCommand(string name, Type command)

Adds a command.

Parameters:

name (string)
The name of the command.
command (Type)
The command type.

Returns:

A command configurator that can be used to configure the command further.

public void AddExample(string[] args)

Adds an example of how to use the branch.

Parameters:

args (string[])
The example arguments.
public void SetDescription(string description)

Sets the description of the branch.

Parameters:

description (string)
The description of the branch.

Extension Methods

IConfigurator<TSettings> SafetyOn<TSettings>(this IUnsafeBranchConfigurator configurator)

Converts an IUnsafeConfigurator to a configurator with type safety.

Returns:

An IConfigurator.