updated commands and descriptions.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-01-09 21:52:54 +01:00
parent 83630fae97
commit b09dd7d2e4

View File

@@ -60,26 +60,27 @@ typedef struct {
{name, sizeof(name)-1, arg, func, doc, show}
static const commands_st commands[] = {
ENTRY("status", NULL, handle_status_cmd,
"Print the status of the server", 1),
ENTRY("stop", "now", handle_stop_cmd,
"Terminates the server", 1),
ENTRY("reload", NULL, handle_reload_cmd,
"Reloads the server configuration", 1),
ENTRY("list users", NULL, handle_list_users_cmd,
"Print the connected users", 1),
ENTRY("info user", "[NAME]", handle_user_info_cmd,
"Print information on the specified user", 1),
ENTRY("info id", "[NAME]", handle_id_info_cmd,
"Print information on the specified ID", 1),
ENTRY("disconnect user", "[NAME]", handle_disconnect_user_cmd,
"Disconnect the specified user", 1),
ENTRY("disconnect id", "[ID]", handle_disconnect_id_cmd,
"Disconnect the specified ID", 1),
ENTRY("list users", NULL, handle_list_users_cmd,
"Prints the connected users", 1),
ENTRY("reload", NULL, handle_reload_cmd,
"Reloads the server configuration", 1),
ENTRY("show status", NULL, handle_status_cmd,
"Prints the status of the server", 1),
ENTRY("show user", "[NAME]", handle_user_info_cmd,
"Prints information on the specified user", 1),
ENTRY("show id", "[NAME]", handle_id_info_cmd,
"Prints information on the specified ID", 1),
ENTRY("stop", "now", handle_stop_cmd,
"Terminates the server", 1),
ENTRY("reset", NULL, handle_reset_cmd, "Resets the screen and terminal",
0),
ENTRY("help", "or ?", handle_help_cmd, "Prints this help", 0),
ENTRY("exit", NULL, handle_exit_cmd, "Exits this application", 0),
/* hidden options */
ENTRY("?", NULL, handle_help_cmd, "Prints this help", -1),
ENTRY("quit", NULL, handle_exit_cmd, "Exits this application", -1),
{NULL, 0, NULL, NULL}