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

Function sandbox_provider_list

crates/openshell-cli/src/run.rs:3441–3458  ·  view source on GitHub ↗
(server: &str, name: &str, tls: &TlsOptions)

Source from the content-addressed store, hash-verified

3439}
3440
3441pub async fn sandbox_provider_list(server: &str, name: &str, tls: &TlsOptions) -> Result<()> {
3442 let mut client = grpc_client(server, tls).await?;
3443 let response = client
3444 .list_sandbox_providers(ListSandboxProvidersRequest {
3445 sandbox_name: name.to_string(),
3446 })
3447 .await
3448 .into_diagnostic()?;
3449 let providers = response.into_inner().providers;
3450
3451 if providers.is_empty() {
3452 println!("No providers attached to sandbox {name}.");
3453 return Ok(());
3454 }
3455
3456 print_provider_attachment_table(&providers);
3457 Ok(())
3458}
3459
3460pub async fn sandbox_provider_attach(
3461 server: &str,

Calls 4

grpc_clientFunction · 0.85
is_emptyMethod · 0.45