MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / readFile

Function readFile

src/commands/agent.ts:59–61  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

57 }
58 },
59 async readFile(p: string): Promise<string> {
60 return fs.readFile(p, 'utf8');
61 },
62 async writeFile(p: string, data: string, opts?: { exclusive?: boolean }): Promise<void> {
63 await fs.writeFile(p, data, { encoding: 'utf8', flag: opts?.exclusive ? 'wx' : 'w' });
64 },

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.80

Tested by

no test coverage detected