Table of Contents

Interface IDelegateCommandRunner

Namespace
OneImlx.Terminal.Commands.Runners
Assembly
OneImlx.Terminal.dll

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 CommandRunnerContext

The runner context.

helpProvider ITerminalHelpProvider

The help provider.

logger ILogger

The 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 CommandRunnerContext

The runner context.

logger ILogger

The logger.

Returns

Task<CommandRunnerResult>

The runner result.