Merge of Fredrik Hultin command_line

This commit is contained in:
Marty Connor
2006-08-09 02:30:35 +00:00
parent 691557281f
commit 41af7457a8
13 changed files with 1184 additions and 0 deletions
+22
View File
@@ -0,0 +1,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,
};