summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-30 11:06:07 +0300
committerKimmo Brunfeldt <kimmobrunfeldt@gmail.com>2014-07-30 11:06:07 +0300
commit7f0662163e801f78dc1524cc2f2097019fa651d2 (patch)
treeeb914413b1d2e26689f16681a4421dd9afd1fbf8
parent870c616159bca710c0c80898e33a9f72dca87d98 (diff)
downloadgit-hours-7f0662163e801f78dc1524cc2f2097019fa651d2.zip
git-hours-7f0662163e801f78dc1524cc2f2097019fa651d2.tar.gz
git-hours-7f0662163e801f78dc1524cc2f2097019fa651d2.tar.bz2
Update documents and guides to new usage style: git hours
-rw-r--r--README.md16
-rwxr-xr-xindex.js10
-rw-r--r--test/test-functional.js2
3 files changed, 14 insertions, 14 deletions
diff --git a/README.md b/README.md
index 7f8dc6b..14c651d 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@ Estimate time spent on a git repository.
**For example time spent on [Twitter's Bootstrap](https://github.com/twbs/bootstrap)**
```javascript
-➜ bootstrap git:(master) githours
+➜ bootstrap git:(master) git-hours
{
"total": {
"hours": 6345,
@@ -69,13 +69,13 @@ Nodegit library is a bit unstable and might crash randomly.
In root of a git repository run:
- githours
+ git-hours
**Note: repository is not detected if you are not in the root of repository!**
Help
- Usage: githours [options]
+ Usage: git-hours [options]
Options:
@@ -89,21 +89,21 @@ Help
- Estimate hours of project
- $ githours
+ $ git-hours
- Estimate hours of development branch
- $ githours --branches development
+ $ git-hours --branches development
- Estimate hours in repository where developers commit more seldom: they might have 4h(240min) pause between commits
- $ githours --max-commit-diff 240
+ $ git-hours --max-commit-diff 240
- Estimate hours in repository where developer works 5 hours before first commit in day
- $ githours --first-commit-add 300
+ $ git-hours --first-commit-add 300
- For more details, visit https://github.com/kimmobrunfeldt/githours
+ For more details, visit https://github.com/kimmobrunfeldt/git-hours
# For contributors
diff --git a/index.js b/index.js
index 51856b4..1c4879d 100755
--- a/index.js
+++ b/index.js
@@ -69,21 +69,21 @@ function parseArgs() {
console.log('');
console.log(' - Estimate hours of project');
console.log('');
- console.log(' $ githours');
+ console.log(' $ git-hours');
console.log('');
console.log(' - Estimate hours of development branch');
console.log('');
- console.log(' $ githours --branches development');
+ console.log(' $ git-hours --branches development');
console.log('');
console.log(' - Estimate hours in repository where developers commit more seldom: they might have 4h(240min) pause between commits');
console.log('');
- console.log(' $ githours --max-commit-diff 240');
+ console.log(' $ git-hours --max-commit-diff 240');
console.log('');
console.log(' - Estimate hours in repository where developer works 5 hours before first commit in day');
console.log('');
- console.log(' $ githours --first-commit-add 300');
+ console.log(' $ git-hours --first-commit-add 300');
console.log('');
- console.log(' For more details, visit https://github.com/kimmobrunfeldt/githours');
+ console.log(' For more details, visit https://github.com/kimmobrunfeldt/git-hours');
console.log('');
});
diff --git a/test/test-functional.js b/test/test-functional.js
index e11df80..1c7c170 100644
--- a/test/test-functional.js
+++ b/test/test-functional.js
@@ -2,7 +2,7 @@ var _ = require('lodash');
var assert = require("assert");
var exec = require('child_process').exec;
-describe('githours', function() {
+describe('git-hours', function() {
describe('cli', function() {