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

Function main

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

Source from the content-addressed store, hash-verified

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

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