opengnsys_ipxe/src/commandline/commands/test2.c

23 lines
471 B
C

#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,
};