Table of Contents

Class CommandParser

Namespace
OneImlx.Terminal.Commands.Parsers
Assembly
OneImlx.Terminal.dll

The default ICommandParser.

public class CommandParser : ICommandParser
Inheritance
CommandParser
Implements
Inherited Members

Constructors

CommandParser(ICommandRouteParser, ILogger<CommandParser>)

Initialize a new instance.

public CommandParser(ICommandRouteParser commandRouteParser, ILogger<CommandParser> logger)

Parameters

commandRouteParser ICommandRouteParser

The command route parser.

logger ILogger<CommandParser>

The logger.

Methods

ParseCommandAsync(CommandParserContext)

Extracts Command asynchronously.

public Task<CommandParserResult> ParseCommandAsync(CommandParserContext context)

Parameters

context CommandParserContext

The option extraction context.

Returns

Task<CommandParserResult>

The CommandParserResult instance.

See Also