Describes a CLI Command that can be run in the program's repl.
More...
|
| Command (string name, string desc, initializer_list< string > args, std::function< void(State &, vector< string >)> execute) |
| Constructor for a CLI command. More...
|
|
|
string | name |
|
string | desc |
|
vector< string > | args |
|
std::function< void(State &, vector< string >)> | execute |
|
Describes a CLI Command that can be run in the program's repl.
Command::Command |
( |
string |
name, |
|
|
string |
desc, |
|
|
initializer_list< string > |
args, |
|
|
std::function< void(State &, vector< string >)> |
execute |
|
) |
| |
|
inline |
Constructor for a CLI command.
- name Command name
- desc Command Description
- args List of argument names
- execute Function to execute when command is run, The vector of strings contains the arguments passed to the command at runtime
The documentation for this class was generated from the following file: