Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
pub 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
main
Function · 0.85
main.rs
File · 0.85
index
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected