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

Function apply_env_map

crates/openshell-driver-kubernetes/src/driver.rs:1988–1995  ·  view source on GitHub ↗
(
    env: &mut Vec<serde_json::Value>,
    values: &std::collections::HashMap<String, String>,
)

Source from the content-addressed store, hash-verified

1986}
1987
1988fn apply_env_map(
1989 env: &mut Vec<serde_json::Value>,
1990 values: &std::collections::HashMap<String, String>,
1991) {
1992 for (key, value) in values {
1993 upsert_env(env, key, value);
1994 }
1995}
1996
1997// Required env vars are passed individually for clarity at call sites; grouping into a struct
1998// would not improve readability for this internal helper.

Callers 1

build_env_listFunction · 0.85

Calls 1

upsert_envFunction · 0.85

Tested by

no test coverage detected