Skip to main content

read_env_cwd

Function read_env_cwd 

Source
pub fn read_env_cwd() -> Option<Vec<String>>
Expand description

Layer 3: reads keys from the .env file in the current working directory.

Re-uses extract_env_keys which is pure and testable. Returns None if the .env file does not exist or has no valid keys.