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

Function envValue

packages/opencode/src/tool/shell.ts:141–145  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

139}
140
141function envValue(key: string) {
142 if (process.platform !== "win32") return process.env[key]
143 const name = Object.keys(process.env).find((item) => item.toLowerCase() === key.toLowerCase())
144 return name ? process.env[name] : undefined
145}
146
147function auto(key: string, cwd: string, shell: string) {
148 const name = key.toUpperCase()

Callers 1

expandFunction · 0.70

Calls 1

findMethod · 0.65

Tested by

no test coverage detected