From 7171455c98b9bc7def3e3bab295a75d1229773fb Mon Sep 17 00:00:00 2001 From: denys Date: Mon, 6 Aug 2018 15:45:18 +0300 Subject: [PATCH 1/2] fix teams docks --- docs/index.js | 2 +- lib/interface/cli/commands/team/get.cmd.js | 18 ++++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/docs/index.js b/docs/index.js index df2fafe30..8884f7803 100644 --- a/docs/index.js +++ b/docs/index.js @@ -27,7 +27,7 @@ const categoriesOrder = { 'helm repos' : 111 , 'predefined pipelines': 120, teams: 130, - more : 140, + more : 150, }; diff --git a/lib/interface/cli/commands/team/get.cmd.js b/lib/interface/cli/commands/team/get.cmd.js index 8e46781e7..b45d098a5 100644 --- a/lib/interface/cli/commands/team/get.cmd.js +++ b/lib/interface/cli/commands/team/get.cmd.js @@ -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()); }, }); From 9cd2a979fd768a5ad09f437548491ab164555c03 Mon Sep 17 00:00:00 2001 From: denys Date: Mon, 6 Aug 2018 16:06:27 +0300 Subject: [PATCH 2/2] change version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8f04ebf16..bb0aa5769 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.8.71", + "version": "0.8.72", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,