@code-pushup/cli
Version:
A CLI to run all kinds of code quality measurements to align your team with company goals
22 lines • 776 B
JavaScript
import { upload } from '@code-pushup/core';
import { logger } from '@code-pushup/utils';
import { printCliCommand, renderPortalHint, } from '../implementation/logging.js';
export function yargsUploadCommandObject() {
const command = 'upload';
return {
command,
describe: 'Upload report results to the portal',
handler: async (args) => {
printCliCommand(command);
const options = args;
if (options.upload == null) {
logger.newline();
renderPortalHint();
logger.newline();
throw new Error('Upload to Portal is missing configuration');
}
await upload(options);
},
};
}
//# sourceMappingURL=upload-command.js.map