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

Function readText

packages/opencode/test/snapshot/snapshot.test.ts:46–46  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

44const write = (file: string, content: string | Uint8Array) =>
45 FSUtil.Service.use((fs) => fs.writeWithDirs(file, content))
46const readText = (file: string) => FSUtil.Service.use((fs) => fs.readFileString(file))
47const exists = (file: string) => FSUtil.Service.use((fs) => fs.existsSafe(file))
48const mkdirp = (dir: string) => FSUtil.Service.use((fs) => fs.ensureDir(dir))
49const rm = (file: string) =>

Callers 1

snapshot.test.tsFile · 0.70

Calls 1

useMethod · 0.45

Tested by

no test coverage detected