WBA_Application::GetCurrentApplication() and mark the handler as
not hidden.
WBA_CommandHandler(WBA_Shell *shell)
Set the parent shell to be the return value of shell and mark the
handler as not hidden.
[arguments] instead of this-command [arguments]).
virtual const char *GetDescription(void) const = 0
Return a description of this command.
GPL_Boolean HandleCommand(void) = 0
Handle an actual usage of the command. Return TRUE
if the arguments to the command were acceptable and FALSE
otherwise.
void Hide(void)
Mark this handler as hidden.
GPL_Boolean IsHidden(void)
Return TRUE if this handler is hidden and FALSE if it is not.
0) is the command name as called. This list is set by
WBA_Shell::Main() before it calls HandleCommand().
GPL_Array<GPL_String> names
Names/aliases of the command.
There are currently two names that are specially recognized.
A handler with the name WBA_PREPROMPT_COMMAND, defined as "PREPROMPT",
is called prior to printing each prompt, ie. when the command queue empties.
This is different than the virtual WBA_Shell::Process() in that
it is not called when commands are backed up,
such as when processing an include.
A WBA_PREPROMPT_COMMAND does not receive arguments.
A handler with the name WBA_DEFAULT_COMMAND, defined as "DEFAULT",
is called when no other handler matches the command name.
A WBA_DEFAULT_COMMAND receives the full arguments.
WBA_Shell *parent
Parent shell.
GPL_Boolean hidden
If the command handler appears in the list of available commands.