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

Function withTempProject

scripts/test-operating-proof.js:17–24  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

15}
16
17function withTempProject(run) {
18 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-operating-proof-'));
19 try {
20 return run(dir);
21 } finally {
22 fs.rmSync(dir, { recursive: true, force: true });
23 }
24}
25
26assert.equal(parseArgs(['--json', '--write', '--route-request', 'review docs']).routeRequest, 'review docs');
27

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected