Skip to main content

Crate wasi_shell

Crate wasi_shell 

Source

Structs§

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.

Enums§

LoopAction
Controls the REPL loop flow after a line is handled.

Traits§

LineHandler
Trait for handling lines read by LineReader.

Functions§

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 |).

Type Aliases§

CommandFn
A function that handles a shell command.