pub fn load_file(file: &str) -> EnvmntResult<()>
Expand description

Parses the provided env file and loads all environment variables.

Arguments

  • file - The file path to load and parse

Example

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

    assert!(output.is_ok());
}