mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Removed ;w file.
This commit is contained in:
parent
323be11f05
commit
4989ba1802
1 changed files with 0 additions and 32 deletions
32
;w
32
;w
|
@ -1,32 +0,0 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
// Dependencies
|
||||
var GitStats = require("../lib")
|
||||
, Fs = require("fs")
|
||||
;
|
||||
|
||||
// CLI options
|
||||
switch (process.argv[2]) {
|
||||
case "--record":
|
||||
var data = process.argv[3].replace(/^\"|\"$/g, "");
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
} catch (e) {
|
||||
throw e;
|
||||
}
|
||||
GitStats.record(data, function (err) {
|
||||
if (err) { throw err; }
|
||||
});
|
||||
break;
|
||||
case "--help":
|
||||
console.log(Fs.readFileSync("./docs/help"));
|
||||
break;
|
||||
case "-v":
|
||||
console.log(require("../package.json").version);
|
||||
break;
|
||||
default:
|
||||
GitStats.ansiCalendar(function (err, data) {
|
||||
console.log(err || data);
|
||||
});
|
||||
break;
|
||||
}
|
Loading…
Reference in a new issue