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

Function removeInstructionsEntry

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

Source from the content-addressed store, hash-verified

486
487/** Inverse of `upsertInstructionsEntry`: strip the CodeGraph block from `file`, if it has one. */
488export function removeInstructionsEntry(file: string): { path: string; action: 'removed' | 'not-found' | 'kept' } {
489 return { path: file, action: removeMarkedSection(file, CODEGRAPH_SECTION_START, CODEGRAPH_SECTION_END) };
490}
491
492/**
493 * `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