1#ifndef Cpl_TShell_Cmd_Help_h
2#define Cpl_TShell_Cmd_Help_h
15#include "colony_config.h"
34 static constexpr const char*
verb =
"help";
37 static constexpr const char*
usage =
"help [* | <cmd>]";
43 static constexpr const char*
detailedHelp =
" Displays list of all supported commands and optionally their detailed help. If\n"
44 " the second argument is command, then the detailed help for that command will\n"
#define OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL
Default Permission level for all commands.
Definition Command.h:24
This template class implements a THREAD SAFE Ring Buffer.
Definition RingBufferMT.h:33
This partially abstract class defines a interface for operating on an output stream (example of a str...
Definition Output.h:34
This partially concrete class implements infrastructure and/or common functionality for a Shell comma...
Definition Command.h:39
This class implements a Shell command.
Definition Help.h:31
static constexpr const char * usage
The command usage string.
Definition Help.h:37
Cpl::TShell::Command::Result_T execute(Cpl::TShell::Context_ &context, char *cmdString, Cpl::Io::Output &outfd) noexcept
See Cpl::TShell::Command.
Help(Cpl::Container::Map< Cpl::TShell::Command > &commandList, Security::Permission_T minPermLevel=OPTION_TSHELL_CMD_COMMAND_DEFAULT_PERMISSION_LEVEL) noexcept
Constructor.
static constexpr const char * verb
The command verb/identifier.
Definition Help.h:34
const char * getUsage() const noexcept
See Cpl::TShell::Command.
Definition Help.h:50
const char * getHelp() const noexcept
See Cpl::TShell::Command.
Definition Help.h:53
static constexpr const char * detailedHelp
The command detailed help string (recommended that lines do not exceed 80 chars) 1 2 3 4 5 6 7 8 1234...
Definition Help.h:43
Result_T
Possible result codes when executing a command.
Definition Command.h:35
This Private Namespace class defines a "Context" for a TShell command.
Definition Context_.h:32
Permission_T
Permissions levels.
Definition Security.h:34
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20