[−][src]Crate simple_env_load
A simple .env file loader
Description
Giving a sequence of env files from most general to most specific.
Operation
Parse each file for key val remove any comments blank lines and extra whitespace.
Syntax
TEST_DATA=bar # spaces are optional
## this is a comment
TEST_baz = "baz" # double quotes are removed
## above line was left intentionally blank
will produce:
Key | Value |
---|---|
TEST_DATA | bar |
TEST_baz | baz |
Functions
load_env_from | Tries to load the env. vars from these paths |
parse_and_set | Parse an env string and calls a function for each key=value pair |