pub fn parse_file(file: &str) -> EnvmntResult<IndexMap<String, String>>
Expand description

Parses the provided env file and returns its content as a map of key/value.

Arguments

  • file - The file path to load and parse

Example

fn main() {
    let env = envmnt::parse_file("./src/test/var.env").unwrap();

    println!("Parsed Env: {:?}", &env);
}