File tree Expand file tree Collapse file tree 3 files changed +6
-16
lines changed
lib/interface/cli/commands/team Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ const categoriesOrder = {
2727 'helm repos' : 111 ,
2828 'predefined pipelines' : 120 ,
2929 teams : 130 ,
30- more : 140 ,
30+ more : 150 ,
3131} ;
3232
3333
Original file line number Diff line number Diff line change @@ -5,30 +5,20 @@ const getRoot = require('../root/get.cmd');
55
66
77const command = new Command ( {
8- command : 'teams [id|name..] ' ,
8+ command : 'teams' ,
99 aliases : [ 'team' , 'tm' ] ,
1010 parent : getRoot ,
11- description : 'Get an array of all current user teams, with specifying user-id get all teams for that user ' ,
11+ description : 'Get an array of all current user teams' ,
1212 webDocs : {
1313 category : 'Teams' ,
1414 title : 'Get Teams' ,
1515 } ,
1616 builder : ( yargs ) => {
1717 return yargs
18- . option ( 'user-id' , {
19- describe : 'User id' ,
20- alias : 'u' ,
21- required : false ,
22- } )
23- . example ( 'codefresh get teams' , 'Get all teams for current user' )
24- . example ( 'codefresh get teams -u [userID]' , 'Get all teams for specific user' ) ;
18+ . example ( 'codefresh get teams' , 'Get all teams for current account' ) ;
2519 } ,
2620 handler : async ( argv ) => {
27- if ( argv [ 'user-id' ] ) {
28- specifyOutputForArray ( argv . output , await team . getTeamsByUserId ( argv . id ) ) ;
29- } else {
30- specifyOutputForArray ( argv . output , await team . getTeamsForCurrentUser ( ) ) ;
31- }
21+ specifyOutputForArray ( argv . output , await team . getTeamsForCurrentUser ( ) ) ;
3222 } ,
3323} ) ;
3424
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.8.71 " ,
3+ "version" : " 0.8.72 " ,
44 "description" : " Codefresh command line utility" ,
55 "main" : " index.js" ,
66 "preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments