summaryrefslogtreecommitdiffstats
path: root/src/commandline/commands/test.c
blob: 1d370124786500bd8300b17a65f3a926257f15c3 (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 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",
	.usage = "A test command\nIt does nothing at all\n\nExample:\n\ttest",
	.desc = "Does nothing",
	.exec = cmd_test_exec,
};