Replies: 1 comment
-
|
I just discovered the "ref" operator. So, the following may work without coping the entire document to a variable. I don't have access to my development environment at the moment, but I will try this as soon as I do. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to implement a YAML "!eval" tag which will evaluate a yq expression and assign the result to the key value.
The relative assignment operator changes the context so expressions relative to the entire document do not work. I was able to work around this by first saving the document to a variable, and then use that in the relative assignment RHS.
This seems like this could be inefficient if the document is large. Is there a better way to do this?
Beta Was this translation helpful? Give feedback.
All reactions