Table of Contents

Interface ICommandRunner<TResult>

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

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 CommandRunnerContext

The runner context.

Returns

Task<TResult>

The runner result.

RunHelpAsync(CommandRunnerContext)

Runs a command help asynchronously.

Task RunHelpAsync(CommandRunnerContext context)

Parameters

context CommandRunnerContext

The runner context.

Returns

Task

The runner result.