CLEANUP: hlua/cli: take the hlua_cli context definition out of the appctx

This context is used by CLI keywords registered by Lua. We can take
it out of the appctx and use the generic command context allocation so
that the appctx doesn't have to declare a specific one anymore. The
context is created during parsing.
This commit is contained in:
Willy Tarreau
2022-05-03 18:13:39 +02:00
parent 41f885241e
commit bcda5f6bcd
2 changed files with 24 additions and 18 deletions

View File

@@ -138,11 +138,6 @@ struct appctx {
/* all entries below are used by various CLI commands, please
* keep the grouped together and avoid adding new ones.
*/
struct {
struct hlua *hlua;
struct task *task;
struct hlua_function *fcn;
} hlua_cli;
struct {
char *path;
struct ckch_store *old_ckchs;