Skip to content

Commit 5ce7d63

Browse files
fix teams docks (#214)
* fix teams docks * change version
1 parent 0cf7f77 commit 5ce7d63

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

lib/interface/cli/commands/team/get.cmd.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,20 @@ const getRoot = require('../root/get.cmd');
55

66

77
const 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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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,

0 commit comments

Comments
 (0)