MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / write

Function write

__tests__/cli-implementations.test.ts:20–24  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

18let cg: CodeGraph;
19
20function write(file: string, source: string) {
21 const absolute = path.join(projectRoot, file);
22 fs.mkdirSync(path.dirname(absolute), { recursive: true });
23 fs.writeFileSync(absolute, source);
24}
25
26function run(args: string[]) {
27 return spawnSync(process.execPath, [BIN, 'implementations', '-p', projectRoot, ...args], {

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected