Simple embedded shell with runtime pluggable commands.
Implements a simple unix-like shell for embedded systems with a pluggable command architecture.
Diff: SimpleShell.h
- Revision:
- 3:ebb4893f033d
- Parent:
- 2:4f0affdb7db9
- Child:
- 4:8b8fa59d0015
--- a/SimpleShell.h Sun Dec 02 17:09:08 2018 +0000 +++ b/SimpleShell.h Sun Dec 02 17:14:28 2018 +0000 @@ -10,10 +10,9 @@ public: SimpleShell(); + void run(); void attach(Callback<void()> cb, char *command); - -// void registerCommand(char *commandString, char *helpText, Callback<void(float)> cb); - void run(); + Callback<void()> findCommand(); private: static const int MAXBUF=128;