mirror of https://github.com/ipxe/ipxe.git
23 lines
471 B
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,
|
|
};
|
|
|