Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalBool ¶
EvalBool evaluates a `when` expression; empty string/"false"/"0" = false, else true.
func ExtractExpressions ¶
ExtractExpressions returns each {{ ... }} inner expression (trimmed) in order.
Types ¶
type Ref ¶
type Ref struct {
ByIndex bool
Index int
Name string
Prop string // output | error | exitcode
Raw string // full token (e.g. steps.foo.output)
ExprRaw string // full {{ ... }} inner expression this ref appears in
}
func ExtractRefs ¶
ExtractRefs scans text for {{ }} blocks and returns parsed refs. Supports comparison expressions like `{{ steps.foo.output != ” }}` by extracting any step references found inside the expression.
Click to show internal directories.
Click to hide internal directories.