mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
updated commands and descriptions.
This commit is contained in:
25
src/occtl.c
25
src/occtl.c
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user