File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -391,8 +391,9 @@ const commandOptions = commander.opts<ICommanderOptions>();
391
391
} ) ;
392
392
commander
393
393
. command ( "set-app-token" )
394
+ . argument ( "[args...]" )
394
395
. description ( "Set the GitHub App token in the Git config" )
395
- . action ( async ( ) => {
396
+ . action ( async ( ... args : string [ ] ) => {
396
397
const set = async ( options : { appID : number ; installationID ?: number ; name : string } ) : Promise < void > => {
397
398
const appName = options . name === config . app . name ? config . app . name : config . app . altname ;
398
399
const appNameKey = `${ appName } .privateKey` ;
@@ -430,7 +431,7 @@ const commandOptions = commander.opts<ICommanderOptions>();
430
431
} ;
431
432
432
433
await set ( config . app ) ;
433
- for ( const org of commander . args . slice ( 1 ) ) {
434
+ for ( const org of args ) {
434
435
await set ( { appID : 46807 , name : org } ) ;
435
436
}
436
437
} ) ;
You can’t perform that action at this time.
0 commit comments