RunAsync(IEnumerable<string>, CancellationToken) Method
Runs the command line application with specified arguments.
public Task<int> RunAsync(IEnumerable<string> args, CancellationToken cancellationToken = default(CancellationToken))
- Namespace
- Spectre
.Console .Cli - Containing Type
- CommandApp
<TDefaultCommand>
Parameters
-
IEnumerable
<string> args - The arguments.
- CancellationToken cancellationToken
- A
System.Threading.CancellationToken
that can be used to abort the application.
Returns
-
Task
<int>