Implement reading of env-vars as config values
Closed this issue · 4 comments
ataggart commented
E.g.:
{
com.example/my-var-with-default #config/env ENV_VAL ; default: 123
com.example/my-var-no-default #config/env ENV_VAL
}
If $ENV_VAL=456
then both of the above vars should have a post-config value of "456"
.
If $ENV_VAL
is not set, com.example/my-var-with-default
will have a post-config value of 123
and com.example/my-var-no-default
will be unbound.
ataggart commented
Also need to be cognizant of how this will affect config.edn
generation by lein-config
.
zspencer commented
ataggart commented
Ah cool, thanks!