]> git.kaiwu.me - haproxy.git/commit
MINOR: cli: refactor CLI wait command parser
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 9 Sep 2026 08:11:55 +0000 (10:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2026 09:33:40 +0000 (11:33 +0200)
commit0295e208fea2abf8eb79cf38f1ee5633f1c2c166
tree6306c6aef99997312c50c9913cc32532af73fde3
parent71a914e0ff8440c3f0d17167732c7028afe57724
MINOR: cli: refactor CLI wait command parser

Reorganize cli_parse_wait() which is responsible to parse CLI wait
command invocation.

This patch splits the function in two parts. First, args[2] is compared
as string to check the comparison argument and assigned <ctx.cond>
member. The second part of the function reuses <ctx.cond> to perform the
necessary initialization.

This patch will allow to extend wait command to add similar conditions
to the already existing one, without having to either duplicate the code
or perform multiple string comparison.
src/cli.c