Simon Glass | 33eb0b9 | 2023-10-01 19:13:06 -0600 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2023 Google LLC |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
Simon Glass | 33eb0b9 | 2023-10-01 19:13:06 -0600 | [diff] [blame] | 7 | #include <command.h> |
| 8 | #include <cli.h> |
| 9 | |
| 10 | static int do_history(struct cmd_tbl *cmdtp, int flag, int argc, |
| 11 | char *const argv[]) |
| 12 | { |
| 13 | cread_print_hist_list(); |
| 14 | |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | U_BOOT_CMD( |
| 19 | history, CONFIG_SYS_MAXARGS, 1, do_history, |
| 20 | "print command history", |
| 21 | "" |
| 22 | ); |