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

Function writeConfigEffect

packages/opencode/test/config/config.test.ts:156–157  ·  view source on GitHub ↗
(dir: string, config: object, name = "opencode.json")

Source from the content-addressed store, hash-verified

154}
155
156const writeConfigEffect = (dir: string, config: object, name = "opencode.json") =>
157 FSUtil.use.writeWithDirs(path.join(dir, name), JSON.stringify(config))
158
159const withInstanceDir = <A, E, R>(dir: string, effect: Effect.Effect<A, E, R>) =>
160 effect.pipe(

Callers 3

withGlobalConfigFunction · 0.85
withConfigTreeFunction · 0.85
config.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected