Documentation
¶
Index ¶
- func ExpandTemplates(s string, vars map[string]*ast.Var) string
- func ExpandVarTemplates(vars map[string]*ast.Var)
- func Parse(path string) (*ast.Taskfile, error)
- func PopulateBuiltins(tf *ast.Taskfile)
- func ResolveAllVarShells(vars map[string]*ast.Var) error
- func ResolveIncludes(tf *ast.Taskfile) error
- func ResolveVarShell(vr *ast.Var) error
- func ResolveVars(vars map[string]*ast.Var) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandVarTemplates ¶
ExpandVarTemplates does a fixed-point pass over vars, evaluating any var whose Static is a template against the *same* var map. Used for vars at a scope where every reference is in-scope — typically the top-level Taskfile vars after ResolveVars has settled the static/shell/ref ones. Task-level vars must NOT go through this: a task-local template often references root-level vars that aren't yet in scope, and committing a half-expanded result here would freeze the wrong value before mergeVars at execution time can finish the job.
Iterates up to 10 times for chained defaults like `OUTPUT: '{{ .OUTPUT | default .DEFAULT_OUTPUT }}'` where one var's resolved Value feeds the next.
func PopulateBuiltins ¶
func ResolveIncludes ¶
func ResolveVarShell ¶
Types ¶
This section is empty.