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 <command.h>
8 #include <cli.h>
9 
do_history(struct cmd_tbl * cmdtp,int flag,int argc,char * const argv[])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 );
23