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

Function writeText

packages/tui/src/util/persistence.ts:12–15  ·  view source on GitHub ↗
(filePath: string, content: string)

Source from the content-addressed store, hash-verified

10}
11
12export async function writeText(filePath: string, content: string) {
13 await mkdir(path.dirname(filePath), { recursive: true })
14 await Bun.write(filePath, content)
15}
16
17export async function appendText(filePath: string, content: string) {
18 await mkdir(path.dirname(filePath), { recursive: true })

Callers 9

frecency.tsxFile · 0.90
updateFrecencyFunction · 0.90
history.tsxFile · 0.90
appendFunction · 0.90
stash.tsxFile · 0.90
pushFunction · 0.90
popFunction · 0.90
removeFunction · 0.90

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected