parse_env_file

Function parse_env_file 

Source
pub fn parse_env_file(path: &Path) -> Result<HashMap<String, String>>
Expand description

Parse a .env file (direnv style) and return key-value pairs

Supports:

  • KEY=value
  • KEY=“value with spaces”
  • KEY=‘value with spaces’
  • export KEY=value
  • §comments

  • Empty lines