]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/command_tbl.c
c0579bc29f72eed607b7ac2d700ae456ac63a355
8 extern int do_help(cmd_tbl_t
*, int, int, char * const []);
9 extern int do_echo(cmd_tbl_t
*, int, int, char * const []);
10 extern int do_env_print(cmd_tbl_t
*, int, int, char * const []);
11 extern int do_env_set(cmd_tbl_t
*, int, int, char * const []);
14 cmd_tbl_t cmd_tbl
[] = {
17 echo
, CONFIG_SYS_MAXARGS
, 1, do_echo
,
18 "echo args to console",
20 " - echo args to console; \\c suppresses newline"
22 CMD_TBL_ITEM_COMPLETE(
23 run
, CONFIG_SYS_MAXARGS
, 1, do_run
,
24 "run commands in an environment variable",
26 " - run the commands in the environment variable(s) 'var'",
29 CMD_TBL_ITEM_COMPLETE(
30 printenv
, CONFIG_SYS_MAXARGS
, 1, do_env_print
,
31 "print environment variables",
32 "\n - print [all] values of all environment variables\n"
34 " - print value of environment variable 'name'",
37 CMD_TBL_ITEM_COMPLETE(
38 setenv
, CONFIG_SYS_MAXARGS
, 0, do_env_set
,
39 "set environment variables",
40 "[-f] name value ...\n"
41 " - [forcibly] set environment variable 'name' to 'value ...'\n"
43 " - [forcibly] delete environment variable 'name'",
47 help
, CONFIG_SYS_MAXARGS
, 1, do_help
,
48 "print command description/usage",
50 " - print brief description of all commands\n"
52 " - print detailed usage of 'command'"
55 /* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */
56 {FSTR("?"), CONFIG_SYS_MAXARGS
, 1, do_help
,
57 FSTR("alias for 'help'"),
58 #ifdef CONFIG_SYS_LONGHELP
60 #endif /* CONFIG_SYS_LONGHELP */
61 #ifdef CONFIG_AUTO_COMPLETE
65 /* Mark end of table */