ICommandInfo Interface

Represents an executable command.
public interface ICommandInfo : ICommandContainer

Properties

abstract string Description
Gets the description of the command.
abstract bool IsBranch
Gets a value indicating whether the command is a branch.
abstract bool IsDefaultCommand
Gets a value indicating whether the command is the default command within its container.
abstract bool IsHidden
Gets a value indicating whether the command is hidden.
abstract string Name
Gets the name of the command.
abstract IReadOnlyList<ICommandParameter> Parameters
Gets the parameters associated with the command.
abstract ICommandInfo Parent
Gets the parent command, if any.

Extension Methods

T And<ICommandInfo>(Action<ICommandInfo>)
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.