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

Function runCli

scripts/test-map-substrate.js:25–33  ·  view source on GitHub ↗
(rootDir, args)

Source from the content-addressed store, hash-verified

23}
24
25function runCli(rootDir, args) {
26 return childProcess.execFileSync(process.execPath, [
27 path.join(__dirname, 'map-index.js'),
28 ...args,
29 ], {
30 cwd: rootDir,
31 encoding: 'utf8',
32 });
33}
34
35function main() {
36 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-map-test-'));

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected