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.
InMemoryHistory
IoContext
Context for utility IO, allowing redirection of stdin, stdout, and stderr.
LineBuffer
A stateful editor for a single line of text buffer.
LineEditor
A minimal line editor with command history.
MultiplexedReader
StdinMultiplexer
A shared stdin reader that can be monitored by a background thread to intercept control characters (like Ctrl-C) on platforms without signals.

Enums§

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

Traits§

History
KeyEventHandler
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.