File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const Promise = require('bluebird')
66const pify = require ( 'pify' )
77const ghauth = pify ( require ( 'ghauth' ) )
88
9- const cli = meow ( [ `
9+ const cli = meow ( `
1010 Usage
1111 $ ignore-github-users <input> [opts]
1212
@@ -19,10 +19,16 @@ const cli = meow([`
1919 Ignored 3 issues with greenkeeper[bot].
2020 $ ignore-github-users greenkeeper[bot]
2121 No notifications from greenkeeper[bot].
22- ` ] , {
23- alias : {
24- t : 'token' ,
25- e : 'enterprise'
22+ ` , {
23+ flags : {
24+ 'token' : {
25+ 'type' : 'string' ,
26+ 'alias' : 't'
27+ } ,
28+ 'enterprise' : {
29+ 'type' : 'boolean' ,
30+ 'alias' : 'e'
31+ }
2632 }
2733} )
2834
@@ -53,6 +59,6 @@ Promise.resolve().then(() => {
5359 cli . flags . token = token
5460 return ignoreGithubUsers ( cli . input [ 0 ] , cli . flags )
5561} )
56- . then ( ( res ) => {
57- console . log ( ( res && res . length !== 0 ) ? res : `No notifications from ${ cli . input [ 0 ] } .` )
58- } )
62+ . then ( ( res ) => {
63+ console . log ( ( res && res . length !== 0 ) ? res : `No notifications from ${ cli . input [ 0 ] } .` )
64+ } )
You can’t perform that action at this time.
0 commit comments