ICommandApp Interface
Represents a command line application.
public interface ICommandApp
- Namespace
- Spectre
.Console .Cli - Implementing Types
Methods
-
abstract void Configure
(Action < I Configurator> ) - Configures the command line application.
-
abstract int Run
(IEnumerable <string> ) - Runs the command line application with specified arguments.
-
abstract Task<int> RunAsync
(IEnumerable <string> ) - Runs the command line application with specified arguments.
Extension Methods
-
T And
<ICommandApp> (Action <ICommandApp> ) - 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.