Skip to main content

parse_env_file

Function parse_env_file 

Source
pub fn parse_env_file(path: &Path) -> Result<Vec<EnvFileEntry>, Error>
Expand description

Parse a .env file into key/value entries.

Skips empty lines and comments (#). Strips surrounding quotes from values. Each entry is tagged with is_secret based on key patterns.