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

Function main

scripts/parse-handoff.cjs:22–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20const { parseHandoff } = require('../core/fleet/parse-handoff');
21
22function main() {
23 const args = process.argv.slice(2);
24 let inputFile = null;
25
26 for (let i = 0; i < args.length; i++) {
27 if (args[i] === '--input' && args[i + 1]) {
28 inputFile = args[i + 1];
29 i++;
30 }
31 }
32
33 const text = inputFile
34 ? fs.readFileSync(inputFile, 'utf8')
35 : fs.readFileSync(0, 'utf8');
36
37 process.stdout.write(JSON.stringify(parseHandoff(text), null, 2));
38}
39
40main();

Callers 1

parse-handoff.cjsFile · 0.70

Calls 1

parseHandoffFunction · 0.85

Tested by

no test coverage detected