Description

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>

Properties

Methods

InheritedAbstractFinalStaticDatatypeHeader
voidvoid setOutputLevel(Json[string] arguments, DConsoleIo aConsoleIo)
DConsoleOptionParserDConsoleOptionParser getOptionParser()
IConsoleOptionParserIConsoleOptionParser buildOptionParser(DConsoleOptionParser parserToDefine)
ulongulong run(Json[string] arguments, DConsoleIo aConsoleIo)
boolbool initialize(Json[string] initData = null)
stringstring defaultName()
size_tsize_t executeCommand(string commandclassname, Json[string] commandArguments = null, DConsoleIo aConsoleIo = null)
voidvoid displayHelp(DConsoleOptionParser optionParser, Json[string] arguments, DConsoleIo aConsoleIo)
stringstring rootName()
stringstring description()
size_tsize_t executeCommand(DCommand command, Json[string] commandArguments = null, DConsoleIo aConsoleIo = null)