]> git.kaiwu.me - haproxy.git/commit
MEDIUM: cli: rework the CLI proxy parser
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 11 Dec 2018 15:10:53 +0000 (16:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 15:54:18 +0000 (16:54 +0100)
commitbddd33af0ba8f1b52d6626d42730f3d6bdc279f8
treef3de46acd623552412a11f1705e1220c7c58975f
parent1a18b54142be2eef6bed2e599c043a52ca19a813
MEDIUM: cli: rework the CLI proxy parser

Rework the CLI proxy parser to look more like the CLI parser, corner
case and escaping are handled the same way.

The parser now splits the commands in words instead of just handling
the prefixes.

It's easier to compare words and arguments of a command this way and to
parse internal command that will be consumed directly by the CLI proxy.
src/cli.c