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

Function withTempProject

scripts/test-skill-packaging.js:14–21  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

12const { scaffold } = require('./skill-scaffold');
13
14function withTempProject(run) {
15 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-skill-packaging-'));
16 try {
17 run(dir);
18 } finally {
19 fs.rmSync(dir, { recursive: true, force: true });
20 }
21}
22
23withTempProject((projectRoot) => {
24 const result = scaffold({

Callers 1

Calls 1

runFunction · 0.70

Tested by

no test coverage detected