Base class for console commands. Provides hooks for common command features: - `initialize` Acts as a post-construct hook. - `buildOptionParser` Build/Configure the option parser for your command. - `execute` Execute your command with parsed Json[string] and ConsoleIo @implements \UIM\Event\IEventDispatcher<\UIM\Command\Command>
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
void | void setOutputLevel(Json[string] arguments, DConsoleIo aConsoleIo) | ||||
DConsoleOptionParser | DConsoleOptionParser getOptionParser() | ||||
IConsoleOptionParser | IConsoleOptionParser buildOptionParser(DConsoleOptionParser parserToDefine) | ||||
ulong | ulong run(Json[string] arguments, DConsoleIo aConsoleIo) | ||||
bool | bool initialize(Json[string] initData = null) | ||||
string | string defaultName() | ||||
size_t | size_t executeCommand(string commandclassname, Json[string] commandArguments = null, DConsoleIo aConsoleIo = null) | ||||
void | void displayHelp(DConsoleOptionParser optionParser, Json[string] arguments, DConsoleIo aConsoleIo) | ||||
string | string rootName() | ||||
string | string description() | ||||
size_t | size_t executeCommand(DCommand command, Json[string] commandArguments = null, DConsoleIo aConsoleIo = null) |