()
| 530 | program: Command; |
| 531 | |
| 532 | constructor() { |
| 533 | this.logger = this.getLogger(); |
| 534 | |
| 535 | // Initialize program |
| 536 | this.program = program as Command; |
| 537 | this.program.name("webpack"); |
| 538 | this.program.configureOutput({ |
| 539 | writeErr: (str) => { |
| 540 | this.logger.error(str); |
| 541 | }, |
| 542 | outputError: (str, write) => { |
| 543 | write(`Error: ${this.capitalizeFirstLetter(str.replace(/^error:/, "").trim())}`); |
| 544 | }, |
| 545 | }); |
| 546 | } |
| 547 | |
| 548 | #createColors(useColor?: boolean): Colors { |
| 549 | let pkg: typeof webpack | undefined; |
nothing calls this directly
no test coverage detected