MINOR: cli: add an expert mode to hide dangerous commands
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2019 15:55:53 +0000 (17:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2019 16:38:00 +0000 (18:38 +0200)
commitabb9f9b0578045ac1507ac4e1d431560ba569286
treef12bb89f9b47076f96785f66f6bcf2fc7c3b595a
parent86bfe146c9cccb318ee3a7be5f22b9d753195e59
MINOR: cli: add an expert mode to hide dangerous commands

Some commands like the debug ones are not enabled by default but can be
useful on some production environments. In order to avoid the temptation
of using them incorrectly, let's introduce an "expert" mode for a CLI
connection, which allows some commands to appear and be used. It is
enabled by command "expert-mode on" which is not listed by default.
doc/management.txt
include/types/cli.h
src/cli.c