-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit-crucible.js
25 lines (19 loc) · 1013 Bytes
/
git-crucible.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env node
'use strict';
var program = require('commander');
var pkginfo = require('pkginfo')(module, 'version', 'description');
var files = require('./lib/files');
var logo = require('./lib/logo');
program
.version(module.exports.version)
.option('-a, --all', 'specify all installed scripts')
.command('install', 'install and configure git-crucible-review-creator script in to a desired git project')
.command('uninstall', 'uninstall git-crucible-review-creator script from a given git project')
.command('disable', 'disable git-crucible-review-creator script from a given git project')
.command('enable', 'enable git-crucible-review-creator script from a given git project')
.command('reviewer', 'allows to add or remove reviewers. use "add" and "remove" sub commands');
//if program was called with no arguments, show help.
if (process.argv.slice(2).length === 0) {
logo.display(module.exports.description, module.exports.version);
}
program.parse(process.argv);