volution / z-run

z-run -- scripting library lightweight Go-based tool
35 stars 1 forks source link

Add support for environment variables fallbacks #35

Closed cipriancraciun closed 2 years ago

cipriancraciun commented 2 years ago

At the moment when one uses &&== env VARIABLE value it overrides and ignores VARIABLE from the environment.

Adding a new option, say &&== env-fallback VARIABLE value should provide a value only if VARIABLE doesn't exist (or is empty) in the initial environment.