MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / resolve_active_gateway

Function resolve_active_gateway

crates/openshell-cli/src/completers.rs:79–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79fn resolve_active_gateway() -> Option<(String, String)> {
80 let name = std::env::var("OPENSHELL_GATEWAY")
81 .ok()
82 .filter(|v| !v.trim().is_empty())
83 .or_else(load_active_gateway)?;
84 let metadata = load_gateway_metadata(&name).ok()?;
85 Some((metadata.gateway_endpoint, name))
86}
87
88async fn completion_grpc_client(
89 server: &str,

Callers 2

complete_sandbox_namesFunction · 0.85
complete_provider_namesFunction · 0.85

Calls 2

load_gateway_metadataFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected