Merge of Fredrik Hultin command_line
[gpxe.git] / src / commandline / commands / test2.c
blob077933d0eea2d3cd2a6f14519f10de5c9f3c77a3
1 #include "command.h"
2 #include "console.h"
4 void test2_req(){}
6 static int cmd_test2_exec ( int argc, char **argv ) {
7 int i;
9 printf("Hello, world!\nI got the following arguments passed to me: \n");
10 for(i = 0; i < argc; i++){
11 printf("%d: \"%s\"\n", i, argv[i]);
13 return 0;
16 struct command test2_command __command = {
17 .name = "test2",
18 .usage = "A test command\nIt does nothing at all\n\nExample:\n\ttest2",
19 .desc = "Does nothing",
20 .exec = cmd_test2_exec,