Command for execution on a Shell.
More...
Command for execution on a Shell.
- Since
- 0.1.0
Definition at line 662 of file console.h.
◆ Command()
Create a command for execution on a Shell.
- Parameters
-
[in] | flags | Shell flags that must be set for this command to be available. |
[in] | not_flags | Shell flags that must not be set for this command to be available. |
[in] | name | Name of the command as a std::vector of flash strings. |
[in] | arguments | Help text for arguments that the command accepts as a std::vector of flash strings (use "<" to indicate a required argument). |
[in] | function | Function to be used when the command is executed. |
[in] | arg_function | Function to be used to perform argument completions for this command. |
- Since
- 0.8.0
Definition at line 514 of file commands.cpp.
◆ maximum_arguments()
size_t uuid::console::Commands::Command::maximum_arguments |
( |
| ) |
const |
|
inline |
Determine the maximum number of arguments for this command based on the length of help text for the arguments.
- Returns
- The maximum number of arguments for this command.
- Since
- 0.1.0
Definition at line 703 of file console.h.
◆ minimum_arguments()
size_t uuid::console::Commands::Command::minimum_arguments |
( |
| ) |
const |
Determine the minimum number of arguments for this command based on the help text for the arguments that begin with the "<" character.
- Returns
- The minimum number of arguments for this command.
- Since
- 0.1.0
Definition at line 526 of file commands.cpp.
◆ arg_function_
Function to be used to perform argument completions for this command.
- Since
- 0.1.0
Definition at line 710 of file console.h.
◆ arguments_
Help text for arguments that the command accepts as a std::vector of flash strings.
- Since
- 0.1.0
Definition at line 708 of file console.h.
◆ flags_
unsigned int uuid::console::Commands::Command::flags_ |
Shell flags that must be set for this command to be available.
- Since
- 0.1.0
Definition at line 705 of file console.h.
◆ function_
Function to be used when the command is executed.
- Since
- 0.1.0
Definition at line 709 of file console.h.
◆ name_
Name of the command as a std::vector of flash strings.
- Since
- 0.1.0
Definition at line 707 of file console.h.
◆ not_flags_
unsigned int uuid::console::Commands::Command::not_flags_ |
Shell flags that must not be set for this command to be available.
- Since
- 0.8.0
Definition at line 706 of file console.h.
The documentation for this class was generated from the following files: