CommandContext Class
Represents a command context.
public sealed class CommandContext
- Namespace
- Spectre
.Console .Cli
Constructors
-
CommandContext
(IEnumerable <string> , I Remaining Arguments, string, object) -
Initializes a new instance of the
CommandContext
class.
Properties
Extension Methods
-
T And
< Command Context> (Action < Command Context> ) - 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.