Skip to main content

Module eval

Module eval 

Source
Expand description

Evaluation engine: registry, decision aggregation, command context. Evaluation engine: builds a command registry from config and evaluates commands.

The CommandRegistry is the central evaluation structure. It maps command names to CommandSpec implementations and handles compound command decomposition, substitution evaluation, wrapper command unwrapping, and decision aggregation.

Re-exports§

pub use context::CommandContext;
pub use decision::Decision;
pub use decision::RuleMatch;

Modules§

context
Per-segment evaluation context (base command, args, env vars, redirections). Per-segment command context: tokenization, env var extraction, and redirection detection.
decision
Decision enum and rule match types. Decision types for command evaluation.

Structs§

CommandRegistry
Registry of all command specs, keyed by command name.