ICommandContainer Interface
Represents a command container.
public interface ICommandContainer
- Namespace
- Spectre
.Console .Cli .Help - Implementing Types
Properties
- abstract IReadOnlyList<ICommandInfo> Commands
- Gets all commands in the container.
- abstract ICommandInfo DefaultCommand
- Gets the default command for the container.
- abstract IReadOnlyList<string[]> Examples
- Gets all the examples for the container.
Extension Methods
-
T And
< I Command Container> (Action < I Command Container> ) - 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.