mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 02:18:31 +00:00
cli: Fix various CLI documentation and completion issues
* app_minivm: Use built-in completion facilities to complete optional arguments. * app_voicemail: Use built-in completion facilities to complete optional arguments. * app_confbridge: Add missing colons after 'Usage' text. * chan_alsa: Use built-in completion facilities to complete optional arguments. * chan_sip: Use built-in completion facilities to complete optional arguments. Add completions for 'load' for 'sip show user', 'sip show peer', and 'sip qualify peer.' * chan_skinny: Correct and extend completions for 'skinny reset' and 'skinny show line.' * func_odbc: Correct completions for 'odbc read' and 'odbc write' * main/asterisk: Correct and extend completions for 'core show file version.' * main/astmm: Use built-in completion facilities to complete arguments for 'memory' commands. * main/bridge: Correct completions for 'bridge kick.' * main/ccss: Use built-in completion facilities to complete arguments for 'cc cancel' command. * main/cli: Add 'all' completion for 'channel request hangup.' Correct completions for 'core set debug channel.' Correct completions for 'core show calls.' * main/pbx_app: Remove redundant completions for 'core show applications.' * main/pbx_hangup_handler: Remove unused completions for 'core show hanguphandlers all.' * res_sorcery_memory_cache: Add completion for 'reload' argument of 'sorcery memory cache stale' and properly implement. Change-Id: Iee58c7392f6fec34ad9d596109117af87697bbca
This commit is contained in:
@@ -1343,7 +1343,7 @@ static char *handle_cli_confbridge_show_user_profiles(struct ast_cli_entry *e, i
|
||||
case CLI_INIT:
|
||||
e->command = "confbridge show profile users";
|
||||
e->usage =
|
||||
"Usage confbridge show profile users\n";
|
||||
"Usage: confbridge show profile users\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
return NULL;
|
||||
@@ -1373,7 +1373,7 @@ static char *handle_cli_confbridge_show_user_profile(struct ast_cli_entry *e, in
|
||||
case CLI_INIT:
|
||||
e->command = "confbridge show profile user";
|
||||
e->usage =
|
||||
"Usage confbridge show profile user [<profile name>]\n";
|
||||
"Usage: confbridge show profile user [<profile name>]\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
if (a->pos == 4) {
|
||||
@@ -1494,7 +1494,7 @@ static char *handle_cli_confbridge_show_bridge_profiles(struct ast_cli_entry *e,
|
||||
case CLI_INIT:
|
||||
e->command = "confbridge show profile bridges";
|
||||
e->usage =
|
||||
"Usage confbridge show profile bridges\n";
|
||||
"Usage: confbridge show profile bridges\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
return NULL;
|
||||
@@ -1526,7 +1526,7 @@ static char *handle_cli_confbridge_show_bridge_profile(struct ast_cli_entry *e,
|
||||
case CLI_INIT:
|
||||
e->command = "confbridge show profile bridge";
|
||||
e->usage =
|
||||
"Usage confbridge show profile bridge <profile name>\n";
|
||||
"Usage: confbridge show profile bridge <profile name>\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
if (a->pos == 4) {
|
||||
@@ -1668,7 +1668,7 @@ static char *handle_cli_confbridge_show_menus(struct ast_cli_entry *e, int cmd,
|
||||
case CLI_INIT:
|
||||
e->command = "confbridge show menus";
|
||||
e->usage =
|
||||
"Usage confbridge show profile menus\n";
|
||||
"Usage: confbridge show profile menus\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
return NULL;
|
||||
@@ -1702,7 +1702,7 @@ static char *handle_cli_confbridge_show_menu(struct ast_cli_entry *e, int cmd, s
|
||||
case CLI_INIT:
|
||||
e->command = "confbridge show menu";
|
||||
e->usage =
|
||||
"Usage confbridge show menu [<menu name>]\n";
|
||||
"Usage: confbridge show menu [<menu name>]\n";
|
||||
return NULL;
|
||||
case CLI_GENERATE:
|
||||
if (a->pos == 3) {
|
||||
|
Reference in New Issue
Block a user