C# Class Tectil.NCommand.CommandRunner

Entrypoint to run a command.
Inheritance: ICommandRunner
Exibir arquivo Open project: tectil/NCommand Class Usage Examples

Public Methods

Method Description
CommandRunner ( ICommandParser parser, ICommandLookup lookup ) : System

Initializes a new instance of the CommandRunner class.

Run ( string commandline ) : CommandResult

Run command (parse, find, compare arguments and execute if ok)

Validate ( string commandline ) : CommandResult

Validate command (parse, find and compare arguments)

Private Methods

Method Description
ValidateDo ( string commandline ) : Tuple,CommandInfo>

Method Details

CommandRunner() public method

Initializes a new instance of the CommandRunner class.
public CommandRunner ( ICommandParser parser, ICommandLookup lookup ) : System
parser ICommandParser The parser.
lookup ICommandLookup The lookup.
return System

Run() public method

Run command (parse, find, compare arguments and execute if ok)
public Run ( string commandline ) : CommandResult
commandline string
return Tectil.NCommand.Contract.CommandResult

Validate() public method

Validate command (parse, find and compare arguments)
public Validate ( string commandline ) : CommandResult
commandline string
return Tectil.NCommand.Contract.CommandResult