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

Function writeText

packages/opencode/test/tool/apply_patch.test.ts:76–76  ·  view source on GitHub ↗
(filepath: string, content: string)

Source from the content-addressed store, hash-verified

74
75const readText = (filepath: string) => Effect.promise(() => fs.readFile(filepath, "utf-8"))
76const writeText = (filepath: string, content: string) => Effect.promise(() => fs.writeFile(filepath, content, "utf-8"))
77const makeDir = (dir: string) => Effect.promise(() => fs.mkdir(dir, { recursive: true }))
78
79const expectFailure = <A, E, R>(effect: Effect.Effect<A, E, R>, message?: string) =>

Callers 2

prompt.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected