Skip to main content

Crate kaish_repl

Crate kaish_repl 

Source
Expand description

kaish REPL — Interactive shell for 会sh.

This REPL provides an interactive interface to the kaish kernel. It handles:

  • Multi-line input via keyword/quote balancing (if/for/while → fi/done)
  • Tab completion for commands, variables, and paths
  • Command execution via the Kernel
  • Result formatting with OutputData
  • Command history via rustyline

Modules§

format
Output formatting for the REPL.

Structs§

Repl
REPL configuration and state.

Enums§

ProcessResult
Result from processing a line of input.

Functions§

os_env_vars
Snapshot the OS environment as a map of StringValue::String.
run
Run the REPL.
run_with_overlay
Run the REPL with optional overlay mode.
trace_options_from_env
Build per-call trace context from the W3C environment variables an upstream tracer sets before invoking kaish: TRACEPARENT, TRACESTATE, and BAGGAGE (the W3C baggage header format, key1=value1,key2=value2).