Simon Glass | 4c0bf97 | 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 | |||||
7 | #include <common.h> | ||||
8 | #include <command.h> | ||||
9 | #include <cli.h> | ||||
10 | |||||
11 | static int do_history(struct cmd_tbl *cmdtp, int flag, int argc, | ||||
12 | char *const argv[]) | ||||
13 | { | ||||
14 | cread_print_hist_list(); | ||||
15 | |||||
16 | return 0; | ||||
17 | } | ||||
18 | |||||
19 | U_BOOT_CMD( | ||||
20 | history, CONFIG_SYS_MAXARGS, 1, do_history, | ||||
21 | "print command history", | ||||
22 | "" | ||||
23 | ); |