ExecuteAsync(CommandContext, TSettings, CancellationToken) Method
Executes the command.
public abstract Task<int> ExecuteAsync(CommandContext context, TSettings settings, CancellationToken cancellationToken)
- Namespace
- Spectre
.Console .Cli - Containing Type
- AsyncCommand
<TSettings>
Parameters
- CommandContext context
- The command context.
- TSettings settings
- The settings.
- CancellationToken cancellationToken
- A
System.Threading.CancellationTokenthat can be used to abort the command.
Returns
-
Task
<int>