MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / main

Function main

e2e/scripts/cli.ts:561–588  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559 E2E_SELFHOST_URL=<app url> vitest run --project selfhost <file>`;
560
561const main = async () => {
562 const [, , command, ...rest] = process.argv;
563 const flags = new Set(rest.filter((a) => a.startsWith("--")));
564 const args = rest.filter((a) => !a.startsWith("--"));
565 switch (command) {
566 case "up":
567 return up(args[0] ?? "selfhost", flags);
568 case "__run":
569 return run(args[0] as "selfhost" | "cloud", flags);
570 case "status":
571 return await status();
572 case "identity":
573 return identity(args[0] ?? "", flags);
574 case "api":
575 return apiCall(args[0] ?? "", args[1], args[2]);
576 case "mcp":
577 return mcpCall(args[0] ?? "", args[1], args.slice(2));
578 case "ledger":
579 return ledger(args[0] ?? "", args[1]);
580 case "logs":
581 return logs(args[0] ?? "");
582 case "down":
583 return down(args[0] ?? "");
584 default:
585 console.log(HELP);
586 if (command !== undefined && command !== "help" && command !== "--help") process.exit(1);
587 }
588};
589
590main().then(
591 () => {

Callers 1

cli.tsFile · 0.70

Calls 10

identityFunction · 0.85
apiCallFunction · 0.85
mcpCallFunction · 0.85
ledgerFunction · 0.85
logsFunction · 0.85
logMethod · 0.80
upFunction · 0.70
runFunction · 0.70
statusFunction · 0.70
downFunction · 0.70

Tested by

no test coverage detected