2011-11-26 20:33:59 +00:00
|
|
|
#include <common.h>
|
|
|
|
#include <command.h>
|
|
|
|
#include <magicvar.h>
|
|
|
|
|
2011-12-21 13:18:57 +00:00
|
|
|
static int do_magicvar(int argc, char *argv[])
|
2011-11-26 20:33:59 +00:00
|
|
|
{
|
|
|
|
struct magicvar *m;
|
|
|
|
|
|
|
|
for (m = &__barebox_magicvar_start;
|
|
|
|
m != &__barebox_magicvar_end;
|
|
|
|
m++)
|
|
|
|
printf("%-32s %s\n", m->name, m->description);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
BAREBOX_CMD_START(magicvar)
|
|
|
|
.cmd = do_magicvar,
|
|
|
|
.usage = "List information about magic variables",
|
commands: group 'help' output
The old output of "help" was just producing a long list, that usually
scrolled of the screen (even on a X11 terminal). This list is more
compact, and also sorted by groups.
The old output format (plus grouping) is now available with 'help -v'.
Example:
Information commands:
?, devinfo, help, iomem, meminfo, version
Boot commands:
boot, bootm, go, loadb, loads, loadx, loady, saves, uimage
...
Signed-off-by: Holger Schurig <holgerschurig@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-05-13 14:14:05 +00:00
|
|
|
BAREBOX_CMD_GROUP(CMD_GRP_ENV)
|
2011-11-26 20:33:59 +00:00
|
|
|
BAREBOX_CMD_END
|