-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cli.js
executable file
·52 lines (48 loc) · 957 Bytes
/
cli.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env node
'use strict'
const meow = require('meow')
const gitPushPR = require('.')
const cli = meow(
`
Usage
$ gppr [options]
Options
--remote, -r Specify remote name [Default: origin]
--allow-all, -a Allow pushes to master and develop
--silent, -s Do not show any progress
--force, -f Push changes even if remote is newer, use with caution
--no-verify, -n Bypass pre-push hooks
Examples
$ gppr -f
`,
{
flags: {
remote: {
type: 'string',
alias: 'r',
default: 'origin'
},
allowAll: {
type: 'boolean',
default: false,
alias: 'a'
},
silent: {
type: 'boolean',
default: false,
alias: 's'
},
force: {
type: 'boolean',
default: false,
alias: 'f'
},
verify: {
type: 'boolean',
default: true,
alias: 'n'
}
}
}
)
gitPushPR(cli.flags)