MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / windowsPowerShellEnv

Function windowsPowerShellEnv

src/windows-powershell.ts:21–27  ·  view source on GitHub ↗
(base: NodeJS.ProcessEnv = process.env)

Source from the content-addressed store, hash-verified

19 * object, so every spelling is dropped. `base` is not changed.
20 */
21export function windowsPowerShellEnv(base: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv {
22 const env: NodeJS.ProcessEnv = {};
23 for (const [key, value] of Object.entries(base)) {
24 if (key.toLowerCase() !== 'psmodulepath') env[key] = value;
25 }
26 return env;
27}
28
29/**
30 * PowerShell statements that load the Archive module of the PowerShell that is

Calls

no outgoing calls

Tested by

no test coverage detected