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

Method set

crates/openshell-server/src/cli.rs:774–779  ·  view source on GitHub ↗
(key: &'static str, value: &str)

Source from the content-addressed store, hash-verified

772 impl EnvVarGuard {
773 #[allow(unsafe_code)]
774 fn set(key: &'static str, value: &str) -> Self {
775 let original = std::env::var(key).ok();
776 // SAFETY: tests serialize environment mutation with ENV_LOCK.
777 unsafe { std::env::set_var(key, value) };
778 Self { key, original }
779 }
780
781 #[allow(unsafe_code)]
782 fn remove(key: &'static str) -> Self {

Callers 2

record_metricsFunction · 0.45
run_sandboxFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected