Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const categoriesOrder = {
'helm repos' : 111 ,
'predefined pipelines': 120,
teams: 130,
more : 140,
more : 150,
};


Expand Down
18 changes: 4 additions & 14 deletions lib/interface/cli/commands/team/get.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,20 @@ const getRoot = require('../root/get.cmd');


const command = new Command({
command: 'teams [id|name..]',
command: 'teams',
aliases: ['team', 'tm'],
parent: getRoot,
description: 'Get an array of all current user teams, with specifying user-id get all teams for that user',
description: 'Get an array of all current user teams',
webDocs: {
category: 'Teams',
title: 'Get Teams',
},
builder: (yargs) => {
return yargs
.option('user-id', {
describe: 'User id',
alias: 'u',
required: false,
})
.example('codefresh get teams', 'Get all teams for current user')
.example('codefresh get teams -u [userID]', 'Get all teams for specific user');
.example('codefresh get teams', 'Get all teams for current account');
},
handler: async (argv) => {
if (argv['user-id']) {
specifyOutputForArray(argv.output, await team.getTeamsByUserId(argv.id));
} else {
specifyOutputForArray(argv.output, await team.getTeamsForCurrentUser());
}
specifyOutputForArray(argv.output, await team.getTeamsForCurrentUser());
},
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.8.71",
"version": "0.8.72",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down