From ba79bb7b06e16a1ac8130956d7948f9e7d4981fb Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 9 Mar 2021 16:09:36 +0100 Subject: [PATCH] fix some missing command when printing helps/markdown --- client/src/cmdflashmem.c | 16 ++++++++-------- client/src/cmdflashmemspiffs.c | 2 +- client/src/cmdlfem.c | 8 ++++---- client/src/cmdmain.c | 4 ++-- client/src/preferences.c | 4 ++-- doc/cliparser_todo.txt | 2 +- doc/commands.md | 2 +- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/client/src/cmdflashmem.c b/client/src/cmdflashmem.c index 5bb3b8cd9..475272a20 100644 --- a/client/src/cmdflashmem.c +++ b/client/src/cmdflashmem.c @@ -146,7 +146,7 @@ static int rdv4_sign_write(uint8_t *signature, uint8_t slen){ return PM3_EFAILED; } -static int CmdFlashmemSpiBaudrate(const char *Cmd) { +static int CmdFlashmemSpiBaud(const char *Cmd) { CLIParserContext *ctx; CLIParserInit(&ctx, "mem baudrate", @@ -605,13 +605,13 @@ static int CmdFlashMemInfo(const char *Cmd) { } static command_t CommandTable[] = { - {"help", CmdHelp, AlwaysAvailable, "This help"}, - {"baudrate", CmdFlashmemSpiBaudrate, IfPm3Flash, "Set Flash memory Spi baudrate"}, - {"spiffs", CmdFlashMemSpiFFS, IfPm3Flash, "High level SPI FileSystem Flash manipulation"}, - {"info", CmdFlashMemInfo, IfPm3Flash, "Flash memory information"}, - {"load", CmdFlashMemLoad, IfPm3Flash, "Load data into flash memory"}, - {"dump", CmdFlashMemDump, IfPm3Flash, "Dump data from flash memory"}, - {"wipe", CmdFlashMemWipe, IfPm3Flash, "Wipe data from flash memory"}, + {"spiffs", CmdFlashMemSpiFFS, IfPm3Flash, "{ SPI File system }"}, + {"help", CmdHelp, AlwaysAvailable, "This help"}, + {"baudrate", CmdFlashmemSpiBaud, IfPm3Flash, "Set Flash memory Spi baudrate"}, + {"dump", CmdFlashMemDump, IfPm3Flash, "Dump data from flash memory"}, + {"info", CmdFlashMemInfo, IfPm3Flash, "Flash memory information"}, + {"load", CmdFlashMemLoad, IfPm3Flash, "Load data to flash memory"}, + {"wipe", CmdFlashMemWipe, IfPm3Flash, "Wipe data from flash memory"}, {NULL, NULL, NULL, NULL} }; diff --git a/client/src/cmdflashmemspiffs.c b/client/src/cmdflashmemspiffs.c index 1a372bb60..6da30392e 100644 --- a/client/src/cmdflashmemspiffs.c +++ b/client/src/cmdflashmemspiffs.c @@ -520,7 +520,7 @@ static int CmdFlashMemSpiFFSView(const char *Cmd) { } static command_t CommandTable[] = { - {"help", CmdHelp, AlwaysAvailable, "This help"}, + {"help", CmdHelp, AlwaysAvailable, "This help"}, {"copy", CmdFlashMemSpiFFSCopy, IfPm3Flash, "Copy a file to another (destructively) in SPIFFS file system"}, {"check", CmdFlashMemSpiFFSCheck, IfPm3Flash, "Check/try to defrag faulty/fragmented file system"}, {"dump", CmdFlashMemSpiFFSDump, IfPm3Flash, "Dump a file from SPIFFS file system"}, diff --git a/client/src/cmdlfem.c b/client/src/cmdlfem.c index 7ad0da3dc..378bf6729 100644 --- a/client/src/cmdlfem.c +++ b/client/src/cmdlfem.c @@ -24,10 +24,10 @@ static int CmdHelp(const char *Cmd); static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, - {"410x", CmdLFEM410X, AlwaysAvailable, "EM 4102 commands..."}, - {"4x05", CmdLFEM4X05, AlwaysAvailable, "EM 4205 / 4305 / 4369 / 4469 commands..."}, - {"4x50", CmdLFEM4X50, AlwaysAvailable, "EM 4350 / 4450 commands..."}, - {"4x70", CmdLFEM4X70, AlwaysAvailable, "EM 4070 / 4170 commands..."}, + {"410x", CmdLFEM410X, AlwaysAvailable, "{ EM 4102 commands... }"}, + {"4x05", CmdLFEM4X05, AlwaysAvailable, "{ EM 4205 / 4305 / 4369 / 4469 commands... }"}, + {"4x50", CmdLFEM4X50, AlwaysAvailable, "{ EM 4350 / 4450 commands... }"}, + {"4x70", CmdLFEM4X70, AlwaysAvailable, "{ EM 4070 / 4170 commands... }"}, {NULL, NULL, NULL, NULL} }; diff --git a/client/src/cmdmain.c b/client/src/cmdmain.c index fe4fa0b84..7e0c823a4 100644 --- a/client/src/cmdmain.c +++ b/client/src/cmdmain.c @@ -298,10 +298,10 @@ static command_t CommandTable[] = { {"--------", CmdHelp, AlwaysAvailable, "----------------------- " _CYAN_("General") " -----------------------"}, {"auto", CmdAuto, IfPm3Present, "Automated detection process for unknown tags"}, {"clear", CmdClear, AlwaysAvailable, "Clear screen"}, - {"help", CmdHelp, AlwaysAvailable, "This help. Use " _YELLOW_("' help'") " for details of a particular command."}, + {"help", CmdHelp, AlwaysAvailable, "Use " _YELLOW_("' help'") " for details of a particular command."}, {"hints", CmdHints, AlwaysAvailable, "Turn hints on / off"}, {"msleep", CmdMsleep, AlwaysAvailable, "Add a pause in milliseconds"}, - {"pref", CmdPref, AlwaysAvailable, "Edit preferences"}, + {"pref", CmdPref, AlwaysAvailable, "{ Edit preferences... }"}, {"rem", CmdRem, AlwaysAvailable, "Add a text line in log file"}, {"quit", CmdQuit, AlwaysAvailable, ""}, {"exit", CmdQuit, AlwaysAvailable, "Exit program"}, diff --git a/client/src/preferences.c b/client/src/preferences.c index d961d2c6f..db08fbd37 100644 --- a/client/src/preferences.c +++ b/client/src/preferences.c @@ -1043,8 +1043,8 @@ static int CmdPrefSave (const char *Cmd) { */ static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, - {"get", CmdPrefGet, AlwaysAvailable, "Get a preference"}, - {"set", CmdPrefSet, AlwaysAvailable, "Set a preference"}, + {"get", CmdPrefGet, AlwaysAvailable, "{ Get a preference }"}, + {"set", CmdPrefSet, AlwaysAvailable, "{ Set a preference }"}, {"show", CmdPrefShow, AlwaysAvailable, "Show all preferences"}, {NULL, NULL, NULL, NULL} }; diff --git a/doc/cliparser_todo.txt b/doc/cliparser_todo.txt index 91aa977be..6ebcfd7b3 100644 --- a/doc/cliparser_todo.txt +++ b/doc/cliparser_todo.txt @@ -91,4 +91,4 @@ lf em 4x70 lf hitag reader lf hitag writer lf hitag dump -script run +mem spiffs diff --git a/doc/commands.md b/doc/commands.md index 1c9938d16..1c655b144 100644 --- a/doc/commands.md +++ b/doc/commands.md @@ -905,7 +905,7 @@ Check column "offline" for their availability. |`lf t55xx info `|Y |`Show T55x7 configuration data (page 0/ blk 0)` |`lf t55xx p1detect `|N |`Try detecting if this is a t55xx tag by reading page 1` |`lf t55xx read `|N |`Read T55xx block data` -|`lf t55xx resetread `|N |`Send Reset Cmd then lf read the stream to attempt to identify the start of it (needs a demod and/or plot after)` +|`lf t55xx resetread `|N |`Send Reset Cmd then lf read the stream to attempt to identify the start of it` |`lf t55xx restore `|N |`Restore T55xx card Page 0 / Page 1 blocks` |`lf t55xx trace `|Y |`Show T55x7 traceability data (page 1/ blk 0-1)` |`lf t55xx wakeup `|N |`Send AOR wakeup command`