mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 12:55:43 +08:00
apps/nshlib: correct commands with alphabet order in kconfig
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
This commit is contained in:
@@ -245,10 +245,6 @@ config NSH_DISABLE_CMP
|
|||||||
bool "Disable cmp"
|
bool "Disable cmp"
|
||||||
default DEFAULT_SMALL
|
default DEFAULT_SMALL
|
||||||
|
|
||||||
config NSH_DISABLE_TIMEDATECTL
|
|
||||||
bool "Disable TIMEDATECTL"
|
|
||||||
default DEFAULT_SMALL || !LIBC_LOCALTIME || !RTC
|
|
||||||
|
|
||||||
config NSH_DISABLE_DATE
|
config NSH_DISABLE_DATE
|
||||||
bool "Disable date"
|
bool "Disable date"
|
||||||
default DEFAULT_SMALL || !RTC
|
default DEFAULT_SMALL || !RTC
|
||||||
@@ -494,6 +490,10 @@ config NSH_DISABLE_TIME
|
|||||||
bool "Disable time"
|
bool "Disable time"
|
||||||
default DEFAULT_SMALL
|
default DEFAULT_SMALL
|
||||||
|
|
||||||
|
config NSH_DISABLE_TIMEDATECTL
|
||||||
|
bool "Disable timedatectl"
|
||||||
|
default DEFAULT_SMALL || !LIBC_LOCALTIME || !RTC
|
||||||
|
|
||||||
config NSH_DISABLE_TEST
|
config NSH_DISABLE_TEST
|
||||||
bool "Disable test"
|
bool "Disable test"
|
||||||
default DEFAULT_SMALL
|
default DEFAULT_SMALL
|
||||||
|
@@ -154,11 +154,6 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
{ "dirname", cmd_dirname, 2, 2, "<path>" },
|
{ "dirname", cmd_dirname, 2, 2, "<path>" },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLE_TIMEDATECTL
|
|
||||||
{ "timedatectl", cmd_timedatectl, 1, 3, "[set-timezone TZ]"
|
|
||||||
},
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLE_DATE
|
#ifndef CONFIG_NSH_DISABLE_DATE
|
||||||
{ "date", cmd_date, 1, 4, "[-s \"MMM DD HH:MM:SS YYYY\"] [-u]" },
|
{ "date", cmd_date, 1, 4, "[-s \"MMM DD HH:MM:SS YYYY\"] [-u]" },
|
||||||
#endif
|
#endif
|
||||||
@@ -537,6 +532,10 @@ static const struct cmdmap_s g_cmdmap[] =
|
|||||||
{ "time", cmd_time, 2, 2, "\"<command>\"" },
|
{ "time", cmd_time, 2, 2, "\"<command>\"" },
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_NSH_DISABLE_TIMEDATECTL
|
||||||
|
{ "timedatectl", cmd_timedatectl, 1, 3, "[set-timezone TZ]" },
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_NSH_DISABLESCRIPT
|
#ifndef CONFIG_NSH_DISABLESCRIPT
|
||||||
{ "true", cmd_true, 1, 1, NULL },
|
{ "true", cmd_true, 1, 1, NULL },
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user