MCPcopy Create free account
hub / github.com/TeamPiped/piped-proxy / get_env_bool

Function get_env_bool

src/utils.rs:98–103  ·  view source on GitHub ↗
(key: &str)

Source from the content-addressed store, hash-verified

96}
97
98pub fn get_env_bool(key: &str) -> bool {
99 match env::var(key) {
100 Ok(val) => val.to_lowercase() == "true" || val == "1",
101 Err(_) => false,
102 }
103}

Callers 3

mainFunction · 0.85
main.rsFile · 0.85
indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected