C# Class cmdR.CmdR

Datei anzeigen Open project: theouteredge/cmdR Class Usage Examples

Public Methods

Method Description
CmdR ( IParseCommands parser = null, IRouteCommands routing = null, IParseRoutes routeParser = null, ICmdRConsole console = null, ICmdRState state = null, string exitcodes = null, string cmdPrompt = "> " ) : System
CmdR ( string cmdPrompt = "> ", string exitcodes = null ) : System
ExecuteCommand ( string command ) : void
ExecuteCommands ( List commands ) : void
RegisterRoute ( string route, string>.Action action, string description = null ) : void
Run ( string args ) : void

Private Methods

Method Description
Init ( IParseCommands parser, IRouteCommands routing, IParseRoutes routeParser, ICmdRConsole console, ICmdRState state, string exitcodes = null, string cmdPrompt = "> " ) : void

Method Details

CmdR() public method

public CmdR ( IParseCommands parser = null, IRouteCommands routing = null, IParseRoutes routeParser = null, ICmdRConsole console = null, ICmdRState state = null, string exitcodes = null, string cmdPrompt = "> " ) : System
parser IParseCommands
routing IRouteCommands
routeParser IParseRoutes
console ICmdRConsole
state ICmdRState
exitcodes string
cmdPrompt string
return System

CmdR() public method

public CmdR ( string cmdPrompt = "> ", string exitcodes = null ) : System
cmdPrompt string
exitcodes string
return System

ExecuteCommand() public method

public ExecuteCommand ( string command ) : void
command string
return void

ExecuteCommands() public method

public ExecuteCommands ( List commands ) : void
commands List
return void

RegisterRoute() public method

public RegisterRoute ( string route, string>.Action action, string description = null ) : void
route string
action string>.Action
description string
return void

Run() public method

public Run ( string args ) : void
args string
return void