From: William Lallemand Date: Fri, 26 Oct 2018 12:47:43 +0000 (+0200) Subject: MINOR: cli: put @master @ @! in the help X-Git-Tag: v1.9-dev5~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e8450b7d6b209ba8f30f41e689af9689fdc9120;p=thirdparty%2Fhaproxy.git MINOR: cli: put @master @ @! in the help Add help for the prefix command of the CLI. These help only displays from the CLI of the master. --- diff --git a/src/cli.c b/src/cli.c index f4c516728b..4ed8b93f36 100644 --- a/src/cli.c +++ b/src/cli.c @@ -2319,6 +2319,9 @@ static struct applet cli_applet = { /* register cli keywords */ static struct cli_kw_list cli_kws = {{ },{ + { { "@", NULL }, "@ : send a command to the process", NULL, cli_io_handler_show_proc, NULL, NULL, ACCESS_MASTER_ONLY}, + { { "@!", NULL }, "@! : send a command to the process", cli_parse_default, NULL, NULL, NULL, ACCESS_MASTER_ONLY}, + { { "@master", NULL }, "@master : send a command to the master process", cli_parse_default, NULL, NULL, NULL, ACCESS_MASTER_ONLY}, { { "help", NULL }, NULL, cli_parse_simple, NULL }, { { "prompt", NULL }, NULL, cli_parse_simple, NULL }, { { "quit", NULL }, NULL, cli_parse_simple, NULL },