Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to pass flags to envsubst? #1137

Closed
mikefarah opened this issue Mar 11, 2022 Discussed in #1136 · 2 comments
Closed

Is it possible to pass flags to envsubst? #1137

mikefarah opened this issue Mar 11, 2022 Discussed in #1136 · 2 comments

Comments

@mikefarah
Copy link
Owner

Discussed in #1136

Originally posted by embee1981 March 10, 2022
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

@mikefarah
Copy link
Owner Author

TLDR: add flag support to envsubst to enable/disable its various options

@mikefarah
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant