ICommandConfigurator Interface

Represents a command configurator.
public interface ICommandConfigurator

Methods

abstract ICommandConfigurator IsHidden()
Marks the command as hidden. Hidden commands do not show up in help documentation or generated XML models.
abstract ICommandConfigurator WithAlias(string)
Adds an alias (an alternative name) to the command being configured.
abstract ICommandConfigurator WithData(object)
Sets data that will be passed to the command via the CommandContext.
abstract ICommandConfigurator WithDescription(string)
Sets the description of the command.
abstract ICommandConfigurator WithExample(string[])
Adds an example of how to use the command.

Extension Methods

T And<ICommandConfigurator>(Action<ICommandConfigurator>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.