a8m / envsubst

Environment variables substitution for Go
MIT License
761 stars 82 forks source link

New flag -d to not replace variables that start with a digit. #39

Closed Xalag closed 1 year ago

Xalag commented 1 year ago

This code solves #38. It leaves variables untouched which start with a digit. This is the same behavior that the original gnu envsubst has. This change is fully backward compatible. The new functionality get's only enabled when the flag -d is given on the command line or when the new functions are used programatically. Some examples for variables which would not be replaced anymore are:

Xalag commented 1 year ago

Thank you Ariel for the quick responses and your hard work to keep this tool maintained!

mautematico commented 1 year ago

Has this been released? from the releases page, looks like last one is v1.2.0 from 2020