()
| 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 | |
| 41 | const cli = Cli.from([LintCommand, Builtins.HelpCommand], { |
nothing calls this directly
no test coverage detected