Expand description
Returns true if the provided environment variable is defined and contains the provided value.
Arguments
key
- The environment variable namevalue
- The value to check
Example
fn main() {
envmnt::set("MY_ENV_VAR", "SOME TEST VALUE");
let contains = envmnt::contains("MY_ENV_VAR", "TEST");
assert!(contains);
}