MCPcopy Create free account
hub / github.com/anomalyco/opencode / env

Function env

packages/core/src/cross-spawn-spawner.ts:109–110  ·  view source on GitHub ↗
(opts: ChildProcess.CommandOptions)

Source from the content-addressed store, hash-verified

107 })
108
109 const env = (opts: ChildProcess.CommandOptions) =>
110 opts.extendEnv ? { ...globalThis.process.env, ...opts.env } : opts.env
111
112 const input = (x: ChildProcess.CommandInput | undefined): NodeChildProcess.IOType | undefined =>
113 Stream.isStream(x) ? "pipe" : x

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected