MCPcopy
hub / github.com/Fission-AI/OpenSpec / writeSpec

Function writeSpec

test/helpers/openspec-fixtures.ts:12–16  ·  view source on GitHub ↗
(rootDir: string, specId: string, body: string)

Source from the content-addressed store, hash-verified

10
11/** Writes a spec file under the root's openspec/specs/<id>/spec.md. */
12export function writeSpec(rootDir: string, specId: string, body: string): void {
13 const specDir = path.join(rootDir, 'openspec', 'specs', specId);
14 fs.mkdirSync(specDir, { recursive: true });
15 fs.writeFileSync(path.join(specDir, 'spec.md'), body);
16}

Calls

no outgoing calls

Tested by

no test coverage detected