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>
This commit is contained in:
Simon Glass
2023-10-01 19:13:06 -06:00
committed by Tom Rini
parent 0f97e944b2
commit 33eb0b9eef
9 changed files with 153 additions and 3 deletions

View File

@@ -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