Method | Description | |
---|---|---|
AbstractExtendedCommand ( string commandName, string commandDescription ) : System.Collections.Generic |
Main constructor
|
|
DoCommand ( string args ) : bool |
Root command action
|
Method | Description | |
---|---|---|
CheckSubCommand ( string command ) : bool |
Checks if specified command defined in subcommands list
|
|
CreateCommands ( ) : SubCommand>.Dictionary |
Subcommand generation method. You must define your subcommands here.
|
|
GetCommandList ( ) : List |
Returns help list of all available subcommands
|
|
LogInfo ( string value ) : void |
You must define console output method here (usually ILogManager.Info(object))
|
Method | Description | |
---|---|---|
CheckInput ( string args ) : bool |
Input validation
|
|
HelpCommand ( string args ) : bool |
Prints help
|
public AbstractExtendedCommand ( string commandName, string commandDescription ) : System.Collections.Generic | ||
commandName | string | Base command name to execute. See |
commandDescription | string | Command description. See |
return | System.Collections.Generic |
protected CheckSubCommand ( string command ) : bool | ||
command | string | Command name |
return | bool |
protected abstract CreateCommands ( ) : SubCommand>.Dictionary |
||
return | SubCommand>.Dictionary |
public DoCommand ( string args ) : bool | ||
args | string | Input arguments |
return | bool |
protected abstract LogInfo ( string value ) : void | ||
value | string | Value you want to log |
return | void |