Complete gateway names from local metadata files (no network call).
(_prefix: &OsStr)
| 20 | |
| 21 | /// Complete gateway names from local metadata files (no network call). |
| 22 | pub 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. |
| 33 | pub fn complete_sandbox_names(_prefix: &OsStr) -> Vec<CompletionCandidate> { |