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

Function remove

__tests__/installer-targets.test.ts:2313–2317  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

2311 return { action, after: fs.readFileSync(file, 'utf-8') };
2312 }
2313 function remove(content: string): { action: string; after: string | null } {
2314 fs.writeFileSync(file, content);
2315 const action = removeMarkedSection(file, START, END);
2316 return { action, after: fs.existsSync(file) ? fs.readFileSync(file, 'utf-8') : null };
2317 }
2318
2319 it('a stray start marker on the first line no longer reduces the file to the block (the report)', () => {
2320 const { action, after } = upsert(`${STRAY}${NOTES}\n\n${LEGACY_BLOCK}\n`);

Callers 1

Calls 1

removeMarkedSectionFunction · 0.90

Tested by

no test coverage detected