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(ITerminalRequestParser, ITerminalTextHandler, ITerminalCommandStore, IOptions<TerminalOptions>, ILogger<CommandParser>)

Initialize a new instance.

public CommandParser(ITerminalRequestParser terminalRequestParser, ITerminalTextHandler textHandler, ITerminalCommandStore commandStore, IOptions<TerminalOptions> terminalOptions, ILogger<CommandParser> logger)

Parameters

terminalRequestParser ITerminalRequestParser

The terminal request parser.

textHandler ITerminalTextHandler
commandStore ITerminalCommandStore
terminalOptions IOptions<TerminalOptions>
logger ILogger<CommandParser>

The logger.

Methods

ParseCommandAsync(CommandContext)

Extracts Command asynchronously.

public Task ParseCommandAsync(CommandContext context)

Parameters

context CommandContext

The option extraction context.

Returns

Task

See Also