Skip to main contentCrate wasi_shell
Source - ArcVecWriter
- A thread-safe writer backed by a shared
Vec<u8>. Useful for tests. - CommandRegistry
- Registry of named commands.
- IoContext
- Context for utility IO, allowing redirection of stdin, stdout, and stderr.
- LineReader
- A minimal line editor with command history.
- LoopAction
- Controls the REPL loop flow after a line is handled.
- LineHandler
- Trait for handling lines read by
LineReader.
- handle_command_line
- Execute a complete command line, splitting by
&& and running sequentially.
Stops execution if any command in the sequence fails. - handle_parallel
- Execute multiple independent command lines in parallel.
- handle_pipeline
- Execute a shell pipeline (commands separated by
|).
- CommandFn
- A function that handles a shell command.