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 = {
27
27
'helm repos' : 111 ,
28
28
'predefined pipelines' : 120 ,
29
29
teams : 130 ,
30
- more : 140 ,
30
+ more : 150 ,
31
31
} ;
32
32
33
33
Original file line number Diff line number Diff line change @@ -5,30 +5,20 @@ const getRoot = require('../root/get.cmd');
5
5
6
6
7
7
const command = new Command ( {
8
- command : 'teams [id|name..] ' ,
8
+ command : 'teams' ,
9
9
aliases : [ 'team' , 'tm' ] ,
10
10
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' ,
12
12
webDocs : {
13
13
category : 'Teams' ,
14
14
title : 'Get Teams' ,
15
15
} ,
16
16
builder : ( yargs ) => {
17
17
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' ) ;
25
19
} ,
26
20
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 ( ) ) ;
32
22
} ,
33
23
} ) ;
34
24
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.8.71 " ,
3
+ "version" : " 0.8.72 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments