tools list fix unwanted pretty-print of json output

This commit is contained in:
Jan Küster
2020-09-23 14:31:07 +02:00
parent 8937648742
commit 4f39ab90bb

View File

@@ -1314,7 +1314,10 @@ main.registerCommand({
});
if (showJson) {
Console.info(JSON.stringify(jsonOut))
// we can't use Console here, because it pretty prints the output with
// a wrap at 80 chars per line, which causes the json to break if details
// options is active and the package descriptions exceed the limit
console.info(JSON.stringify(jsonOut));
}
return 0;