aboutsummaryrefslogtreecommitdiff
path: root/cmd/history.c
blob: 8972986ca9d1152eadf5b790e8fe695303d644e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright 2023 Google LLC
 * Written by Simon Glass <sjg@chromium.org>
 */

#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",
	""
);