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

Function complete_gateway_names

crates/openshell-cli/src/completers.rs:22–30  ·  view source on GitHub ↗

Complete gateway names from local metadata files (no network call).

(_prefix: &OsStr)

Source from the content-addressed store, hash-verified

20
21/// Complete gateway names from local metadata files (no network call).
22pub fn complete_gateway_names(_prefix: &OsStr) -> Vec<CompletionCandidate> {
23 let Ok(gateways) = list_gateways() else {
24 return Vec::new();
25 };
26 gateways
27 .into_iter()
28 .map(|g| CompletionCandidate::new(g.name))
29 .collect()
30}
31
32/// Complete sandbox names by querying the active gateway.
33pub fn complete_sandbox_names(_prefix: &OsStr) -> Vec<CompletionCandidate> {

Calls 1

list_gatewaysFunction · 0.85