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

Function phase_name

crates/openshell-cli/src/run.rs:116–125  ·  view source on GitHub ↗

Convert a sandbox phase integer to a human-readable string.

(phase: i32)

Source from the content-addressed store, hash-verified

114
115/// Convert a sandbox phase integer to a human-readable string.
116fn phase_name(phase: i32) -> &'static str {
117 match SandboxPhase::try_from(phase) {
118 Ok(SandboxPhase::Unspecified) => "Unspecified",
119 Ok(SandboxPhase::Provisioning) => "Provisioning",
120 Ok(SandboxPhase::Ready) => "Ready",
121 Ok(SandboxPhase::Error) => "Error",
122 Ok(SandboxPhase::Deleting) => "Deleting",
123 Ok(SandboxPhase::Unknown) | Err(_) => "Unknown",
124 }
125}
126
127fn ready_false_condition_message(
128 status: Option<&openshell_core::proto::SandboxStatus>,

Callers 1

sandbox_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected