mirror of
https://gitee.com/mirrors_adrian-thurston/yq.git
synced 2026-01-15 07:53:35 +08:00
343 B
343 B
Eval
Use eval to dynamically process an expression - for instance from an environment variable.
eval takes a single argument, and evaluates that as a yq expression. Any valid expression can be used, beit a path .a.b.c | select(. == "cat"), or an update .a.b.c = "gogo".
Tip: This can be useful way parameterize complex scripts.