envsubst icon indicating copy to clipboard operation
envsubst copied to clipboard

Add option to only parse $ALL_CAPS env vars

Open vladnosek opened this issue 3 years ago • 2 comments

Especially for nginx configs, lots of directives use $lowercase_variable, so having to escape a lot of content.

It would be nice to have an caps-only flag to only detect env vars that are uppercase.

vladnosek avatar May 15 '21 21:05 vladnosek

I could jump on this if there are no other takers for a PR on this.

@a8m the only thing I guess is to settle on the bool flag name --no-lower maybe?

dnitsch avatar Jun 11 '21 08:06 dnitsch

Hey @dnitsch and @vladnosek, I'm fine with adding this option (including the new flag). Please feel free to send a PR and tag me there. Thanks 🙏

a8m avatar Jun 21 '21 07:06 a8m