parse

package
v3.0.0-alpha2.105 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTemplates

func ExpandTemplates(s string, vars map[string]*ast.Var) string

func ExpandVarTemplates

func ExpandVarTemplates(vars map[string]*ast.Var)

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 Parse

func Parse(path string) (*ast.Taskfile, error)

func PopulateBuiltins

func PopulateBuiltins(tf *ast.Taskfile)

func ResolveAllVarShells

func ResolveAllVarShells(vars map[string]*ast.Var) error

func ResolveIncludes

func ResolveIncludes(tf *ast.Taskfile) error

func ResolveVarShell

func ResolveVarShell(vr *ast.Var) error

func ResolveVars

func ResolveVars(vars map[string]*ast.Var) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL