Go to the documentation of this file.
18 #ifndef __SH_SHELLCOMMAND
19 #define __SH_SHELLCOMMAND
83 virtual int execute(
const Size nparams,
const char **params) = 0;
const char * getHelp() const
Get command help.
ShellCommand(const char *name, const Size minParams=0)
Constructor.
Builtin command for the Shell.
const char * m_help
Command help text.
const char * getName() const
Get command name.
unsigned int Size
Any sane size indicator cannot go negative.
virtual ~ShellCommand()
Destructor.
Size getMinimumParams() const
Get the minimum number of parameters required.
virtual int execute(const Size nparams, const char **params)=0
Executes the command.
const Size m_minParams
Minimum number of parameters required.
const char * m_name
Unique name of the command.