diff options
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 418155c4..c3ab395d 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2298,6 +2298,21 @@ static struct cmd_t command_defs[] = CMD_EXAMPLES( "/export /path/to/output.csv", "/export ~/contacts.csv") + }, + + { "/command", + parse_args, 1, 1, NULL, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_command) + CMD_NOTAGS + CMD_SYN( + "/command <cmd>") + CMD_DESC( + "Execute an ad hoc command") + CMD_ARGS( + { "<cmd>", "Command to be executed" }) + CMD_EXAMPLES( + "/command ping") } }; |