Skip to main content

Module condition

Module condition 

Source
Expand description

Conditional rule evaluation — when clauses for context-aware rules.

Structs§

MatchContext
Runtime context for evaluating rule conditions.

Enums§

Condition
A single condition that must be true for a rule to apply.

Functions§

detect_git_branch
Detect the current git branch from a working directory.
evaluate_all
Evaluate all conditions (AND). Returns true if all pass or list is empty.
parse_conditions
Parse a TOML when value into a list of conditions.