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

Function inject_provider_env

crates/openshell-supervisor-process/src/process.rs:48–55  ·  view source on GitHub ↗
(cmd: &mut Command, provider_env: &HashMap<String, String>)

Source from the content-addressed store, hash-verified

46}
47
48fn inject_provider_env(cmd: &mut Command, provider_env: &HashMap<String, String>) {
49 for (key, value) in provider_env {
50 if is_supervisor_only_env_var(key) {
51 continue;
52 }
53 cmd.env(key, value);
54 }
55}
56
57#[cfg(unix)]
58pub fn harden_child_process() -> Result<()> {

Calls 1

Tested by

no test coverage detected