Method
FoundryCliCommandTreeregister
Declaration [src]
void
foundry_cli_command_tree_register (
FoundryCliCommandTree* self,
const char* const* path,
const FoundryCliCommand* command
)
Description [src]
Registers command at path.
The command’s description is used as its help summary. Use
foundry_cli_command_tree_register_full() when positional argument
syntax should be displayed in generated help.
Parameters
path-
Type: An array of
char*The command path.
The array must be NULL-terminated.The data is owned by the caller of the method. Each element is a NUL terminated UTF-8 string. command-
Type:
FoundryCliCommandThe command implementation.
The data is owned by the caller of the method.