mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-09-28 19:31:30 +02:00
Format raw data
This commit is contained in:
parent
395eaa0942
commit
7a89fd9f72
@ -63,6 +63,7 @@ var recordOpt = new Clp.Option(["record"], "Records a new commit. Don't use this
|
|||||||
, dataPathOpt
|
, dataPathOpt
|
||||||
, firstDayOpt
|
, firstDayOpt
|
||||||
, recordOpt
|
, recordOpt
|
||||||
|
, rawOpt
|
||||||
])
|
])
|
||||||
, options = null
|
, options = null
|
||||||
;
|
;
|
||||||
@ -148,6 +149,9 @@ if (!authorsOpt.is_provided || globalActivityOpt.is_provided) {
|
|||||||
|
|
||||||
function display (err, data) {
|
function display (err, data) {
|
||||||
if (err) { return Logger.log(err, "error"); }
|
if (err) { return Logger.log(err, "error"); }
|
||||||
|
if (typeof data !== "string") {
|
||||||
|
data = JSON.stringify(data);
|
||||||
|
}
|
||||||
process.stdout.write(data + "\n");
|
process.stdout.write(data + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user