Expand description
Variable system — user-defined variables with {{var_name}} template syntax.
Variables are stored in ~/.mur/variables.yaml and can be referenced in
workflow steps, commands, and descriptions using {{variable_name}} syntax.
§Variable Resolution Order
- CLI overrides (
--var key=value) - Workflow-level defaults (
variables:section in workflow YAML) - Global variables (
~/.mur/variables.yaml) - Environment variables (
$VAR_NAME→{{VAR_NAME}})
Structs§
- Variable
Store - A collection of user-defined variables, persisted as
~/.mur/variables.yaml.
Functions§
- collect_
workflow_ variables - Collect all variable references from a workflow’s steps and descriptions.
- extract_
variable_ names - Extract all
{{var}}names from a template string (excluding{{input}}). - parse_
var_ overrides - Parse CLI
--var key=valuepairs into a map. - resolve_
variables - Resolve all
{{var}}placeholders in a template string. - workflow_
defaults_ map - Build workflow defaults map from a workflow’s
variablessection.