MCPcopy Create free account
hub / github.com/SethGammon/Citadel / withTempProject

Function withTempProject

scripts/test-first-use-operator.js:12–19  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

10const { buildConsole, renderConsole } = require('./operator-console');
11
12function withTempProject(run) {
13 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-first-use-'));
14 try {
15 return run(dir);
16 } finally {
17 fs.rmSync(dir, { recursive: true, force: true });
18 }
19}
20
21function scaffoldPlanning(projectRoot) {
22 fs.mkdirSync(path.join(projectRoot, '.planning', 'campaigns'), { recursive: true });

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected