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

Function write

scripts/test-operator-console.js:12–15  ·  view source on GitHub ↗
(filePath, content)

Source from the content-addressed store, hash-verified

10const { applyStackDecision, buildConsole, renderConsole } = require('./operator-console');
11
12function write(filePath, content) {
13 fs.mkdirSync(path.dirname(filePath), { recursive: true });
14 fs.writeFileSync(filePath, content, 'utf8');
15}
16
17function withTempProject(run) {
18 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-operator-console-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected