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

Function removeInstructionsEntry

src/installer/targets/shared.ts:461–463  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

459
460/** Inverse of `upsertInstructionsEntry`: strip the CodeGraph block from `file`, if it has one. */
461export function removeInstructionsEntry(file: string): { path: string; action: 'removed' | 'not-found' | 'kept' } {
462 return { path: file, action: removeMarkedSection(file, CODEGRAPH_SECTION_START, CODEGRAPH_SECTION_END) };
463}
464
465/**
466 * `content` with every well-formed marker block removed, or `null` when it

Callers 7

uninstallMethod · 0.90
uninstallMethod · 0.90
uninstallMethod · 0.90
uninstallMethod · 0.90
uninstallMethod · 0.90
uninstallMethod · 0.90
uninstallMethod · 0.90

Calls 1

removeMarkedSectionFunction · 0.85

Tested by

no test coverage detected