Replies: 1 comment
-
Not at the moment sorry - feel free to raise an enhancement request. It would have to be backwards compatible so maybe something like |
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.
-
I have a file path stored in yaml field and I want to know if I could load the file or not, e.g:
echo 'null' | yq 'load("non-existing.yaml")'
gives me an error:
Error: Failed to load non-existing.yaml: open non-existing.yaml: no such file or directory
Are there options to check if the file exists or to make the
load
function return a value (so it could be used with an alternative operator//
) instead of throwing an error?Beta Was this translation helpful? Give feedback.
All reactions