]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cli: implement execution context for manually registered keywords
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 08:37:15 +0000 (09:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:38 +0000 (18:06 +0100)
commit17cbec485a404db7999eac5f78f85e4d77f2e85e
treef31840db244c0c8d5c94e0fdbd1529f39098dc9d
parent5cd71f69ba4a24d92a05499749549fe9ebaf98e3
MINOR: cli: implement execution context for manually registered keywords

Keywords registered out of an initcall will have a TH_EX_CTX_CLI_KWL
execution context pointing to the keyword list. The report will indicate
the 5 first words of the first command of the list, e.g.:

     exec_ctx: cli kwl starting with 'debug counters   '

This should also work for CLI keywords registered in Lua.
include/haproxy/tinfo-t.h
src/cli.c
src/tools.c