Class CommandChecker
The default command checker.
public sealed class CommandChecker : ICommandChecker
- Inheritance
-
CommandChecker
- Implements
- Inherited Members
Constructors
CommandChecker(IOptionChecker, IArgumentChecker, TerminalOptions, ILogger<CommandChecker>)
Initialize a new instance.
public CommandChecker(IOptionChecker optionChecker, IArgumentChecker argumentChecker, TerminalOptions terminalOptions, ILogger<CommandChecker> logger)
Parameters
optionChecker
IOptionCheckerThe option checker.
argumentChecker
IArgumentCheckerThe argument checker.
terminalOptions
TerminalOptionsThe configuration options.
logger
ILogger<CommandChecker>The logger.
Methods
CheckCommandAsync(CommandCheckerContext)
Checks Command asynchronously.
public Task<CommandCheckerResult> CheckCommandAsync(CommandCheckerContext context)
Parameters
context
CommandCheckerContextThe command check context.
Returns
- Task<CommandCheckerResult>
The CommandCheckerResult instance.