Expand description
Sets the environment variable value.
Arguments
key
- The environment variable namevalue
- The environment variable value
Example
fn main() {
envmnt::set("MY_ENV_VAR", "SOME VALUE");
assert!(envmnt::is_equal("MY_ENV_VAR", "SOME VALUE"));
let value = envmnt::get_or("MY_ENV_VAR", "DEFAULT_VALUE");
assert_eq!(value, "SOME VALUE");
}