MCPcopy
hub / github.com/SBoudrias/Inquirer.js / execute

Method execute

tools/package/src/bin.ts:22–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 });
21
22 override async execute() {
23 try {
24 const result = await lintPackages({ check: this.check });
25 for (const issue of result.issues) {
26 this.context.stderr.write(
27 `[${issue.status}] ${issue.message} (${issue.packagePath})\n`,
28 );
29 }
30
31 return result.hasFailures ? 1 : 0;
32 } catch (error: unknown) {
33 this.context.stderr.write(
34 `${error instanceof Error ? error.message : String(error)}\n`,
35 );
36 return 1;
37 }
38 }
39}
40
41const cli = Cli.from([LintCommand, Builtins.HelpCommand], {

Callers

nothing calls this directly

Calls 2

lintPackagesFunction · 0.90
writeMethod · 0.80

Tested by

no test coverage detected