Repository navigation
|
Hi all I'm looking to use the -no-unset flag that envsubst supports at https://github.com/a8m/envsubst#imposing-restrictions Is this possible, something like? yq '(.. | select(tag == "!!str")) |= envsubst -no-unset' configFile.yaml I've tried --no-unset, -no-unset and no-unset after the envsubst but its not happy with any of these. Just checking if I'm invoking wrong or this is something that's not supported. I'm playing with files that use environment variables and it would be handy to use this feature since its a nifty enhancement over what's available via the standard command line |
Answered by
ngirard
Jan 11, 2024
Replies: 2 comments 2 replies
|
Nah its not yet supported - moving this to an issue to track |
1 reply
|
I think it's possible now, via yq '(.. | select(tag == "!!str")) |= envsubst(nu) configFile.yaml |
1 reply
Answer selected by
mikefarah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it's possible now, via
yq '(.. | select(tag == "!!str")) |= envsubst(nu) configFile.yaml