MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / provider_env_var

Function provider_env_var

crates/opencode-cli/src/main.rs:3130–3135  ·  view source on GitHub ↗
(provider: &str)

Source from the content-addressed store, hash-verified

3128];
3129
3130fn provider_env_var(provider: &str) -> Option<&'static str> {
3131 let normalized = provider.trim().to_lowercase();
3132 AUTH_ENV_PROVIDERS
3133 .iter()
3134 .find_map(|(name, env)| (*name == normalized).then_some(*env))
3135}
3136
3137async fn handle_auth_command(action: AuthCommands) -> anyhow::Result<()> {
3138 match action {

Callers 1

handle_auth_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected