cli: Allow command completion to be disabled
When inputting text outside the command line we don't want to use tab
for command completion. Add an option to control this.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/include/cli.h b/include/cli.h
index 252bdb7..ad3cb44 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -32,6 +32,7 @@
* @eol_num: Number of characters in the buffer
* @insert: true if in 'insert' mode
* @history: true if history should be accessible
+ * @cmd_complete: true if tab completion should be enabled
* @buf: Buffer containing line
* @prompt: Prompt for the line
*/
@@ -41,6 +42,7 @@
uint len;
bool insert;
bool history;
+ bool cmd_complete;
char *buf;
const char *prompt;
};