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

Function env_any

crates/opencode-provider/src/bootstrap.rs:2133–2142  ·  view source on GitHub ↗
(keys: &[&str])

Source from the content-addressed store, hash-verified

2131// ---------------------------------------------------------------------------
2132
2133fn env_any(keys: &[&str]) -> Option<String> {
2134 for key in keys {
2135 if let Ok(value) = std::env::var(key) {
2136 if !value.trim().is_empty() {
2137 return Some(value);
2138 }
2139 }
2140 }
2141 None
2142}
2143
2144fn provider_option_string(provider: &ProviderState, keys: &[&str]) -> Option<String> {
2145 for key in keys {

Callers 2

provider_secretFunction · 0.85
create_concrete_providerFunction · 0.85

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected