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

Function write

scripts/test-next-action.js:18–21  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

16} = require('./next-action');
17
18function write(filePath, content) {
19 fs.mkdirSync(path.dirname(filePath), { recursive: true });
20 fs.writeFileSync(filePath, content, 'utf8');
21}
22
23function withTempProject(run) {
24 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-next-action-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected