MCPcopy Index your code
hub / github.com/anomalyco/opencode / restoreEnv

Function restoreEnv

packages/opencode/test/server/httpapi-ui.test.ts:53–59  ·  view source on GitHub ↗
(key: string, value: string | undefined)

Source from the content-addressed store, hash-verified

51}
52
53function restoreEnv(key: string, value: string | undefined) {
54 if (value === undefined) {
55 delete process.env[key]
56 return
57 }
58 process.env[key] = value
59}
60
61function app(input?: { password?: string; username?: string }) {
62 const handler = HttpRouter.toWebHandler(

Callers 1

httpapi-ui.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected