Commit ddf3d70
committed
feat(console): add shell component with pipeline and operator support
Add new esp_shell component providing Unix-like shell functionality:
- Pipeline support with '|' operator for command chaining
- File output with support for '>' or '>>' for append.
- Multiple command operators: ';' (continue), '&&' (break on fail), '||' (break on success)
- Asynchronous command execution using console task API
- Real-time I/O handling with select() for stdin/stdout/stderr
- Proper resource management and error handling
- Support for Ctrl+D EOF detection, will support escaping of if a
program like grep
Enables complex command sequences and data flow between commands
similar to traditional Unix shells.1 parent 551de8c commit ddf3d70
3 files changed
+400
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments