1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const reporter_1 = require("./reporter");
|
4 | async function output(options) {
|
5 | switch (options.format.toLowerCase()) {
|
6 | case 'json': {
|
7 | process.stdout.write(JSON.stringify(options.reports, null, 2));
|
8 | break;
|
9 | }
|
10 | case 'simple': {
|
11 | await reporter_1.simpleReporter(options.filePath, options.reports, options.html, {
|
12 | color: options.color,
|
13 | noStdOut: false,
|
14 | problemOnly: options.problemOnly,
|
15 | });
|
16 | break;
|
17 | }
|
18 | default: {
|
19 | await reporter_1.standardReporter(options.filePath, options.reports, options.html, {
|
20 | color: options.color,
|
21 | noStdOut: false,
|
22 | problemOnly: options.problemOnly,
|
23 | });
|
24 | }
|
25 | }
|
26 | }
|
27 | exports.output = output;
|