Interface IDelegateCommandRunner
An abstraction to delegate to ICommandRunner<TResult>.
public interface IDelegateCommandRunner
Remarks
The IDelegateCommandRunner enables the use of generics with ICommandRunner<TResult>. All implementations must delegate by calling ICommandRunner<TResult> without any business logic.
Methods
DelegateHelpAsync(CommandContext, ITerminalHelpProvider, ILogger?)
Delegates to RunHelpAsync(CommandContext) asynchronously.
Task<CommandRunnerResult> DelegateHelpAsync(CommandContext context, ITerminalHelpProvider helpProvider, ILogger? logger = null)
Parameters
context
CommandContextThe runner context.
helpProvider
ITerminalHelpProviderThe help provider.
logger
ILoggerThe logger.
Returns
- Task<CommandRunnerResult>
The runner result.
DelegateRunAsync(CommandContext, ILogger?)
Delegates to RunCommandAsync(CommandContext) asynchronously.
Task<CommandRunnerResult> DelegateRunAsync(CommandContext context, ILogger? logger = null)
Parameters
context
CommandContextThe runner context.
logger
ILoggerThe logger.
Returns
- Task<CommandRunnerResult>
The runner result.