MCPcopy Create free account
hub / github.com/scopecraft/command / updateSection

Function updateSection

src/core/task-parser.ts:246–250  ·  view source on GitHub ↗
(content: string, sectionName: string, newContent: string)

Source from the content-addressed store, hash-verified

244 * Update a specific section while preserving others
245 */
246export function updateSection(content: string, sectionName: string, newContent: string): string {
247 const task = parseTaskDocument(content);
248 task.sections[sectionName.toLowerCase()] = newContent;
249 return serializeTaskDocument(task);
250}
251
252/**
253 * Extract a specific section from task content

Callers

nothing calls this directly

Calls 2

parseTaskDocumentFunction · 0.85
serializeTaskDocumentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…