MCPcopy Create free account
hub / github.com/MigoXLab/coderio / main

Function main

src/cli/index.ts:20–38  ·  view source on GitHub ↗
(argv: string[])

Source from the content-addressed store, hash-verified

18import { registerValidateCommand } from './val';
19
20async function main(argv: string[]): Promise<void> {
21 const program = new Command();
22
23 // Register all commands
24 registerCommands(program);
25 registerD2CCommand(program);
26 registerD2PCommand(program);
27 registerP2CCommand(program);
28 registerImagesCommand(program);
29 registerValidateCommand(program);
30
31 if (argv.length <= 2) {
32 program.help({ error: false });
33 return;
34 }
35
36 // Parse arguments and execute actions
37 await program.parseAsync(argv);
38}
39
40main(process.argv).catch(err => {
41 const error = err as Error;

Callers 1

index.tsFile · 0.70

Calls 6

registerCommandsFunction · 0.90
registerD2CCommandFunction · 0.90
registerD2PCommandFunction · 0.90
registerP2CCommandFunction · 0.90
registerImagesCommandFunction · 0.90
registerValidateCommandFunction · 0.90

Tested by

no test coverage detected