Skip to content

Commit

Permalink
Re-add JSON output (aquasecurity#261)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fuller <[email protected]>
  • Loading branch information
joshlarsen and matthewdfuller authored Jul 24, 2020
1 parent 09b344e commit 318b27f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions postprocess/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,14 @@ module.exports = {
outputs.push(this.createJunit(streamJunit));
}

var addJsonOutput = argv.find(function (arg) {
return arg.startsWith('--json=');
});
if (addJsonOutput) {
var stream = fs.createWriteStream(addJsonOutput.substr(7));
outputs.push(this.createJson(stream));
}

var addConsoleOutput = argv.find(function(arg) {
return arg.startsWith('--console');
});
Expand Down

0 comments on commit 318b27f

Please sign in to comment.