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

Function sandbox_names

e2e/rust/src/harness/cli.rs:54–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54pub async fn sandbox_names() -> Result<Vec<String>, String> {
55 let (output, code) = run_cli(&["sandbox", "list", "--names"]).await;
56 let clean = strip_ansi(&output);
57 if code != 0 {
58 return Err(format!("sandbox list failed (exit {code}):\n{clean}"));
59 }
60
61 Ok(clean
62 .lines()
63 .map(str::trim)
64 .filter(|line| !line.is_empty())
65 .map(ToOwned::to_owned)
66 .collect())
67}
68
69pub async fn wait_for_sandbox_exec_contains(
70 sandbox_name: &str,

Calls 3

strip_ansiFunction · 0.85
run_cliFunction · 0.70
is_emptyMethod · 0.45