The latter seems to sort of load from the environment - if there's an environment variable foo that will be used. As in, the env_prefix and snake-casification (although it doesn't apply in this case) aren't getting applied.
Although I'm not sure if the first line actually has any effect as this may be getting interpreted as the first example.
I believe the tests for loading from the environment all use the upper-case version. I will add a test to see if I can get a failure based on this issue.
Trying to load configuration using the
ENVIRONMENT
source as shown in the README.Given this spec:
This seems to work as expected:
But this does not (and this is basically what's currently in the readme):
The latter seems to sort of load from the environment - if there's an environment variable
foo
that will be used. As in, theenv_prefix
and snake-casification (although it doesn't apply in this case) aren't getting applied.However, this does seem to work:
Although I'm not sure if the first line actually has any effect as this may be getting interpreted as the first example.
I believe the tests for loading from the environment all use the upper-case version. I will add a test to see if I can get a failure based on this issue.