summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-20 14:34:46 -0400
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-22 17:14:55 -0400
commit26fbe47294b56bf58a7452e55d24c4204042959d (patch)
treeb4d6fdcd68b8cf5a70be9071c106c6521013184d /lib/command.h
parent8f2a4d3047139723416dfe6ccccd3c8f54653ef7 (diff)
lib: add ability to dump cli mode graph
The grammar sandbox has had the ability to dump individual commands as DOT graphs, but now that generalized DOT support is present it's trivial to extend this to entire submodes. This is quite useful for visualizing the CLI space when debugging CLI errors. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
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 bb77812350..f18de3417c 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -146,6 +146,7 @@ enum node_type {
};
extern vector cmdvec;
+extern const struct message tokennames[];
extern const char *node_names[];
/* Node which has some commands and prompt string and configuration