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