UNPKG

@code-pushup/cli

Version:

A CLI to run all kinds of code quality measurements to align your team with company goals

25 lines 852 B
import { collectAndPersistReports, } from '@code-pushup/core'; import { printCliCommand, renderCategoriesHint, renderPortalHint, renderUploadHint, } from '../implementation/logging.js'; export function yargsCollectCommandObject() { const command = 'collect'; return { command, describe: 'Run plugins and collect results', handler: async (args) => { printCliCommand(command); const options = args; await collectAndPersistReports(options); if (!options.categories?.length) { renderCategoriesHint(); } const { upload } = args; if (upload) { renderUploadHint(); } else { renderPortalHint(); } }, }; } //# sourceMappingURL=collect-command.js.map