Skip to main content

Module variable

Module variable 

Source
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

  1. CLI overrides (--var key=value)
  2. Workflow-level defaults (variables: section in workflow YAML)
  3. Global variables (~/.mur/variables.yaml)
  4. Environment variables ($VAR_NAME{{VAR_NAME}})

Structs§

VariableStore
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=value pairs into a map.
resolve_variables
Resolve all {{var}} placeholders in a template string.
workflow_defaults_map
Build workflow defaults map from a workflow’s variables section.