74 virtual int vOnMain(
const std::vector< str16 >& tokens )=0;
83 bool ShowHelp(
const std::vector< str16 >& tokens ,
const char* help );
90 int Main(
const std::vector< str16 >& tokens ){
91 return vOnMain( tokens );
106 bool _no_history_registration =
false;
107 void vOnStep()
override;
109 void _SetLineBuff(
const char* sz );
129 void Input( u32 keycode_ );
bool ShowHelp(const std::vector< str16 > &tokens, const char *help)
Displays help information for the command.
Definition shell.cpp:242
CShellCmd(const char *name_)
Constructor for CShellCmd.
Definition shell.cpp:238
int Main(const std::vector< str16 > &tokens)
Executes the command with the provided tokens.
Definition shell.h:90
std::vector< str16 > GetAvailableCommands()
Retrieves a list of available commands.
Definition shell.cpp:168
void ExecShellScript(std::shared_ptr< std::string > script_)
Executes a shell script.
Definition shell.cpp:89
void Input(u32 keycode_)
Processes an input keycode.
Definition shell.cpp:104
void Prompt()
Displays the command prompt.
Definition shell.cpp:78
void Register(CShellCmd *cmd_)
Registers a new command with the shell.
Definition shell.cpp:226
Header file for managing dynamic creation and destruction of objects in a game.
Module for managing fixed-size strings.