MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / parse_bool_env

Function parse_bool_env

crates/opencode-cli/src/main.rs:957–962  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

955}
956
957fn parse_bool_env(value: &str) -> bool {
958 matches!(
959 value.trim().to_ascii_lowercase().as_str(),
960 "1" | "true" | "yes" | "on"
961 )
962}
963
964fn infer_language_id(path: &Path) -> &'static str {
965 match path

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected