Expand description
Exec runtime: build argv from a parsed pipeline and execute it as a chain of child processes. No shell is ever invoked.
The pipeline AST itself is produced by crate::parse::exec; this module
is concerned only with executing it safely.
Semantics:
- A
ValueRefis resolved against anExecContext(query/path/header/ var maps and aBodyValue). - A
Texttoken is always emitted as one argv element. Missing interpolations render as the empty string. - A
[..]Grouptoken is emitted only if every required interpolation resolves; otherwise the whole group is omitted from argv (this is how optional flags work). - Pipeline stages are wired stdin → stdout. A bare
Sourcestage ($ | cmd) feeds a value as stdin to the next command.
Structs§
Enums§
Functions§
- build_
argv - preview_
pipeline - Render a human-readable, non-executing preview of
pipelineagainstctx. Used by--dry-runto log the commands that would have run. - run_
pipeline