MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / restoreEnv

Function restoreEnv

packages/kaos/test/login-shell-path.test.ts:230–236  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

228});
229
230function restoreEnv(key: string, value: string | undefined): void {
231 if (value === undefined) {
232 delete process.env[key];
233 } else {
234 process.env[key] = value;
235 }
236}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected