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

Function main

scripts/stack-plan.js:389–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389function main() {
390 const args = parseArgs(process.argv.slice(2));
391 if (args.help) {
392 process.stdout.write(`${usage()}\n`);
393 return;
394 }
395 const stack = assessStack(args.projectRoot);
396 if (args.json) process.stdout.write(`${JSON.stringify(stack, null, 2)}\n`);
397 else {
398 process.stdout.write(renderStackPlan(stack));
399 process.stdout.write(`Report: ${stack.reportPath}\n`);
400 }
401 process.exitCode = stack.status === 'blocked' ? 1 : 0;
402}
403
404if (require.main === module) main();
405

Callers 1

stack-plan.jsFile · 0.70

Calls 4

assessStackFunction · 0.85
renderStackPlanFunction · 0.85
parseArgsFunction · 0.70
usageFunction · 0.70

Tested by

no test coverage detected