MCPcopy Create free account
hub / github.com/ProNextJS/declarative-routing / main

Function main

src/index.ts:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9process.on("SIGTERM", () => process.exit(0));
10
11async function main() {
12 const packageInfo = await getPackageInfo();
13 const program = new Command()
14 .name(packageInfo?.name || "declarative-routing")
15 .description(`${packageInfo?.description} CLI`)
16 .version(
17 packageInfo?.version || "0.0.1",
18 "-v, --version",
19 "display the version number"
20 );
21 program.addCommand(init).addCommand(build);
22 program.parse();
23}
24main();

Callers 1

index.tsFile · 0.85

Calls 1

getPackageInfoFunction · 0.90

Tested by

no test coverage detected