summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2024-03-01 08:48:47 -0500
committerChristian Hopps <chopps@labn.net>2024-03-03 17:59:36 -0500
commit29dba445b4e6d762e80e1bd015a70cb362a7906e (patch)
treecfa2fb6fdde1f0c37033879663638f1034524e1e /lib/command.h
parent3fa5a77def22e8f9fcec83a3e8e5e7ce8f1f6240 (diff)
lib: add automatic xpath-based completion
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index 04c66adb26..ef1815c0bd 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -636,6 +636,7 @@ extern void cmd_banner_motd_line(const char *line);
struct cmd_variable_handler {
const char *tokenname, *varname;
+ const char *xpath; /* fill comps from set of values at xpath */
void (*completions)(vector out, struct cmd_token *token);
};