blob: 758c3c1e82047484dfd67fab8755d369c8e977a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <string.h>
#include <vsprintf.h>
#include <gpxe/tables.h>
#include <gpxe/command.h>
static struct command cmd_start[0] __table_start ( commands );
static struct command cmd_end[0] __table_end ( commands );
void help_req(){}
static int cmd_help_exec ( int argc, char **argv ) {
struct command *ccmd;
printf("Available commands:\n\n");
for ( ccmd = cmd_start ; ccmd < cmd_end ; ccmd++ ) {
printf (" %s\n", ccmd->name );
}
return 0;
}
struct command help_command __command = {
.name = "help",
.exec = cmd_help_exec,
};
|