Interface ICommandRunner<TResult>
An abstraction of a command runner.
public interface ICommandRunner<TResult> where TResult : CommandRunnerResult
Type Parameters
TResult
Methods
RunCommandAsync(CommandRunnerContext)
Runs a command asynchronously.
Task<TResult> RunCommandAsync(CommandRunnerContext context)
Parameters
context
CommandRunnerContextThe runner context.
Returns
- Task<TResult>
The runner result.
RunHelpAsync(CommandRunnerContext)
Runs a command help asynchronously.
Task RunHelpAsync(CommandRunnerContext context)
Parameters
context
CommandRunnerContextThe runner context.
Returns
- Task
The runner result.