diff options
Diffstat (limited to 'cmd/history.c')
-rw-r--r-- | cmd/history.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cmd/history.c b/cmd/history.c new file mode 100644 index 0000000000..b6bf4670b1 --- /dev/null +++ b/cmd/history.c @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2023 Google LLC + * Written by Simon Glass <sjg@chromium.org> + */ + +#include <common.h> +#include <command.h> +#include <cli.h> + +static int do_history(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) +{ + cread_print_hist_list(); + + return 0; +} + +U_BOOT_CMD( + history, CONFIG_SYS_MAXARGS, 1, do_history, + "print command history", + "" +); |