summaryrefslogtreecommitdiffstats
path: root/src/commandline/commands/test2.c
blob: 077933d0eea2d3cd2a6f14519f10de5c9f3c77a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "command.h"
#include "console.h"

void test2_req(){}

static int cmd_test2_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 test2_command __command = {
	.name = "test2",
	.usage = "A test command\nIt does nothing at all\n\nExample:\n\ttest2",
	.desc = "Does nothing",
	.exec = cmd_test2_exec,
};