MCPcopy
hub / github.com/garrytan/gstack / compare

Function compare

design/src/compare.ts:633–639  ·  view source on GitHub ↗
(options: CompareOptions)

Source from the content-addressed store, hash-verified

631 * Compare command: generate comparison board HTML from image files.
632 */
633export 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}

Callers 1

mainFunction · 0.90

Calls 1

generateCompareHtmlFunction · 0.85

Tested by

no test coverage detected