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

Function write

__tests__/swift-composition-continuation.test.ts:72–75  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

70 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-swift-composition-'));
71 projects.push(root);
72 const write = (rel: string, content: string) => {
73 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
74 fs.writeFileSync(path.join(root, rel), content);
75 };
76 write(
77 'Sources/Editor/Services.swift',
78 `enum StatusEditor {}

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected