mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
Help
- Added stub help command.
This commit is contained in:
parent
37577fcb03
commit
710128c7d7
3 changed files with 45 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <readline/history.h>
|
||||
#endif
|
||||
|
||||
int cmdHelp ();
|
||||
int cmdDiagnostics ();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -61,6 +62,8 @@ static int commandLoop ()
|
|||
// Dispatch command
|
||||
int status = 0;
|
||||
if (closeEnough ("exit", command, 3)) status = 1;
|
||||
else if (closeEnough ("quit", command, 3)) status = 1;
|
||||
else if (closeEnough ("help", command, 3)) status = cmdHelp ();
|
||||
else if (closeEnough ("diagnostics", command, 3)) status = cmdDiagnostics ();
|
||||
|
||||
// TODO help
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue