Simple embedded shell with runtime pluggable commands.
Implements a simple unix-like shell for embedded systems with a pluggable command architecture.
Revision 1:998a7ed04f10, committed 2018-12-02
- Comitter:
- shimniok
- Date:
- Sun Dec 02 16:50:40 2018 +0000
- Parent:
- 0:49820d5a38c9
- Child:
- 2:4f0affdb7db9
- Commit message:
- Stubbed out command attach
Changed in this revision
SimpleShell.cpp | Show annotated file Show diff for this revision Revisions of this file |
SimpleShell.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SimpleShell.cpp Sat Dec 01 23:18:03 2018 +0000 +++ b/SimpleShell.cpp Sun Dec 02 16:50:40 2018 +0000 @@ -21,6 +21,10 @@ } +void SimpleShell::attach(Callback<void()> cb, char *command) { +} + + void SimpleShell::printPrompt() { fputc('(', stdout);
--- a/SimpleShell.h Sat Dec 01 23:18:03 2018 +0000 +++ b/SimpleShell.h Sun Dec 02 16:50:40 2018 +0000 @@ -4,8 +4,7 @@ public: SimpleShell(); - void attach(Callback<void()> func, char *command) { - } + void attach(Callback<void()> cb, char *command); // void registerCommand(char *commandString, char *helpText, Callback<void(float)> cb); void run();