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