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

Function get_env_key_or

crates/opencode-provider/src/auth.rs:189–191  ·  view source on GitHub ↗
(provider_id: &str, default: &str)

Source from the content-addressed store, hash-verified

187}
188
189pub fn get_env_key_or(provider_id: &str, default: &str) -> String {
190 get_env_key(provider_id).unwrap_or_else(|| default.to_string())
191}
192
193#[cfg(test)]
194mod tests {

Callers

nothing calls this directly

Calls 1

get_env_keyFunction · 0.85

Tested by

no test coverage detected