aboutsummaryrefslogtreecommitdiff
path: root/include/cli.h
diff options
context:
space:
mode:
authorSimon Glass2023-10-01 19:13:06 -0600
committerTom Rini2023-10-11 15:43:54 -0400
commit33eb0b9eef3360396aa0f650f8e1e01baf6dc181 (patch)
treec92ca08093001fca4f2ec92257b1b3f2850e09b4 /include/cli.h
parent0f97e944b2bb08b7e13210fc6bea75817aee3237 (diff)
cli: Add a command to show cmdline history
There is a function for this but it is never used. Showing the history is a useful feature, so add a new 'history' command. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cli.h')
-rw-r--r--include/cli.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cli.h b/include/cli.h
index 094a6602d70..ac09c80c784 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -229,4 +229,7 @@ void cli_ch_init(struct cli_ch_state *cch);
*/
int cli_ch_process(struct cli_ch_state *cch, int ichar);
+/** cread_print_hist_list() - Print the command-line history list */
+void cread_print_hist_list(void);
+
#endif