register_commands() function
Register one or more commands in the specified context, as children of @c parent (or top-level commends, if NULL). In a registration's record contains a non-NULL @c chain member and name is NULL, the commands on the chain will be registered in the same context. Otherwise, the chained commands are added as children of the command.
Arguments
cmd_ctx
The command_context in which to register the command.
cmd_prefix
Register this command as a child of this, or NULL to register a top-level command.
cmds
Pointer to an array of command_registration records that contains the desired command parameters. The last record must have NULL for all fields.
Return value
ERROR_OK on success; ERROR_FAIL if any registration fails.