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

Function load_sandbox_policy

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

Load sandbox policy YAML. Resolution order: `--policy` flag > `OPENSHELL_SANDBOX_POLICY` env var. Returns `None` when no policy source is configured, allowing the server to apply its own default.

(cli_path: Option<&str>)

Source from the content-addressed store, hash-verified

2558/// Returns `None` when no policy source is configured, allowing the server
2559/// to apply its own default.
2560fn load_sandbox_policy(cli_path: Option<&str>) -> Result<Option<SandboxPolicy>> {
2561 openshell_policy::load_sandbox_policy(cli_path)
2562}
2563
2564/// Sync files to or from a sandbox.
2565///

Callers 3

sandbox_createFunction · 0.70
sandbox_policy_setFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected