MINOR: cli: make "show env" accessible via master CLI without enabling debug
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 18 Nov 2024 09:46:33 +0000 (10:46 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 19 Nov 2024 13:13:42 +0000 (14:13 +0100)
commitd58a8d1f643ed10d1e24244d8901fb95b58247aa
treed0829a7c5e3da5e207cdbb4fab86d8073305646e
parentb9536717cdf880b82d1ad404606c95d0426fb1b9
MINOR: cli: make "show env" accessible via master CLI without enabling debug

Before this patch, we have need to put the master CLI in debug mode to be able
to issue 'show env' command for the master process. Output of this command is
handy even for the master process context, as it allows to control its
environment variables, which could be used/modified in the 'global' section.

So, let's provide in 'show env' command structure the level ACCESS_MASTER.
This allows to see and to access this command in master CLI without putting it
in debug mode.
src/cli.c