mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Format raw data
This commit is contained in:
parent
395eaa0942
commit
7a89fd9f72
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue