summaryrefslogtreecommitdiffstats
path: root/src/commandline/commands/test.c
blob: 59b0b72b73f5d312f640c88a713b6e32de5575c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <vsprintf.h>
#include <gpxe/command.h>

void test_req(){}

static int cmd_test_exec ( int argc, char **argv ) {
	int i;

	printf("Hello, world!\nI got the following arguments passed to me: \n");
	for(i = 0; i < argc; i++){
		printf("%d: \"%s\"\n", i, argv[i]);
	}
	return 0;
}

struct command test_command __command = {
	.name = "test",
	.exec = cmd_test_exec,
};