mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2025-01-03 18:32:11 +01:00
Do not output the argv anymore. Show the graph.
This commit is contained in:
parent
1917b64d6f
commit
4a9ef5c7a0
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ var GitStats = require("../lib");
|
||||||
switch (process.argv[2]) {
|
switch (process.argv[2]) {
|
||||||
case "--record":
|
case "--record":
|
||||||
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
||||||
console.log(process.argv);
|
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -24,7 +23,7 @@ switch (process.argv[2]) {
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
GitStats.get(function (err, data) {
|
GitStats.graph({}, function (err, data) {
|
||||||
console.log(err || data);
|
console.log(err || data);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue