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

Function write

__tests__/drupal-services.test.ts:219–223  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

217 let cg: CodeGraph;
218
219 const write = (rel: string, content: string): void => {
220 const full = path.join(dir, rel);
221 fs.mkdirSync(path.dirname(full), { recursive: true });
222 fs.writeFileSync(full, content);
223 };
224 const outgoing = (name: string, kind: string): string[] => {
225 const node = cg.getNodesByName(name).find((n) => n.kind === kind);
226 if (!node) throw new Error(`no ${kind} ${name}`);

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected