C# Class Tectil.NCommand.CommandRunner

Entrypoint to run a command.
Inheritance: ICommandRunner
Afficher le fichier Open project: tectil/NCommand Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ValidateDo ( string commandline ) : Tuple,CommandInfo>

Method Details

CommandRunner() public méthode

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

Run() public méthode

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

Validate() public méthode

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