(options: CompareOptions)
| 631 | * Compare command: generate comparison board HTML from image files. |
| 632 | */ |
| 633 | export function compare(options: CompareOptions): void { |
| 634 | const html = generateCompareHtml(options.images); |
| 635 | const outputDir = path.dirname(options.output); |
| 636 | fs.mkdirSync(outputDir, { recursive: true }); |
| 637 | fs.writeFileSync(options.output, html); |
| 638 | console.log(JSON.stringify({ outputPath: options.output, variants: options.images.length })); |
| 639 | } |
no test coverage detected