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

Function policy_status_json_name

crates/openshell-cli/src/run.rs:7236–7244  ·  view source on GitHub ↗
(status: PolicyStatus)

Source from the content-addressed store, hash-verified

7234}
7235
7236fn policy_status_json_name(status: PolicyStatus) -> &'static str {
7237 match status {
7238 PolicyStatus::Unspecified => "unspecified",
7239 PolicyStatus::Pending => "pending",
7240 PolicyStatus::Loaded => "loaded",
7241 PolicyStatus::Failed => "failed",
7242 PolicyStatus::Superseded => "superseded",
7243 }
7244}
7245
7246fn policy_revision_to_json(
7247 scope: &str,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected