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

Function phase_label

crates/openshell-tui/src/lib.rs:2448–2457  ·  view source on GitHub ↗
(phase: i32)

Source from the content-addressed store, hash-verified

2446}
2447
2448fn phase_label(phase: i32) -> String {
2449 match phase {
2450 x if x == SandboxPhase::Provisioning as i32 => "Provisioning",
2451 x if x == SandboxPhase::Ready as i32 => "Ready",
2452 x if x == SandboxPhase::Error as i32 => "Error",
2453 x if x == SandboxPhase::Deleting as i32 => "Deleting",
2454 _ => "Unknown",
2455 }
2456 .to_string()
2457}
2458
2459fn format_age(epoch_ms: i64) -> String {
2460 if epoch_ms <= 0 {

Callers 1

refresh_sandboxesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected