Skip to main content

Module variables

Module variables 

Source
Expand description

Purpose: Provide the public template-variable API surface for validation, context detection, and substitution.

Responsibilities:

  • Declare the template::variables child modules.
  • Re-export the stable public API used by template loading and callers.

Scope:

  • Thin facade only; implementation lives in sibling files under template/variables/.

Usage:

  • Import public types and helpers through crate::template or crate::template::variables.

Invariants/Assumptions:

  • The public API surface remains stable across the split.
  • Validation, detection, and substitution behavior lives in focused companions and must remain unchanged.

Structs§

TemplateContext
Context for template variable substitution.
TemplateValidation
Result of template validation.

Enums§

TemplateWarning
Warning types for template validation.

Functions§

detect_context
Detect context from target path and git repository (legacy, ignores warnings).
detect_context_with_warnings
Detect context from target path and git repository.
substitute_variables
Substitute variables in a template string.
substitute_variables_in_task
Substitute variables in all string fields of a Task.
validate_task_template
Validate a template task and collect warnings.