ADD: started with adding a "LS" command that lists the commands without the help text printed. To give easy clean list.

This commit is contained in:
iceman1001 2015-07-22 11:19:15 +02:00
commit f445df401e
5 changed files with 26 additions and 3 deletions

View file

@ -28,6 +28,18 @@ void CmdsHelp(const command_t Commands[])
}
}
void CmdsLS(const command_t Commands[])
{
if (Commands[0].Name == NULL) return;
int i = 0;
while (Commands[i].Name)
{
if (!offline || Commands[i].Offline)
PrintAndLog("%-16s", Commands[i].Name);
++i;
}
}
void CmdsParse(const command_t Commands[], const char *Cmd)
{
if(strcmp( Cmd, "XX_internal_command_dump_XX") == 0)