AsyncCommand<TSettings> Class
Base class for an asynchronous command.
public abstract class AsyncCommand<TSettings> : ICommand<TSettings>, ICommandLimiter<TSettings>,
ICommand
where TSettings : CommandSettings
- Namespace
- Spectre
.Console .Cli - Interfaces
Parameters
-
TSettings
- The settings type.
Methods
-
abstract Task<int> ExecuteAsync
(CommandContext, TSettings) - Executes the command.
-
virtual ValidationResult Validate
(CommandContext, TSettings) - Validates the specified settings and remaining arguments.