From c5667efa8d58c7eda62cba57bfedad4537a95c79 Mon Sep 17 00:00:00 2001 From: "yosi.zanko" Date: Wed, 25 Oct 2023 16:47:08 +0300 Subject: [PATCH 1/2] CR-20734-update documentation for pipeline label filter. --- lib/interface/cli/commands/pipeline/get.cmd.js | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/interface/cli/commands/pipeline/get.cmd.js b/lib/interface/cli/commands/pipeline/get.cmd.js index 2bb3dd63e..d92eab69c 100644 --- a/lib/interface/cli/commands/pipeline/get.cmd.js +++ b/lib/interface/cli/commands/pipeline/get.cmd.js @@ -52,9 +52,8 @@ const command = new Command({ describe: 'Filter pipelines by project name', }) .option('label', { - describe: 'Filter by a label', + describe: 'Filter by a label - i.e tags=tag1,tag2', alias: 'l', - default: [], }) .option('limit', { describe: `Limit amount of returned results [default: ${DEFAULTS.GET_LIMIT_RESULTS}]`, diff --git a/package.json b/package.json index 600e359da..7c6b276c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.87.1", + "version": "0.87.2", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true, From 207a48419ca0c4d9bf477f1360c6cb009fcb101c Mon Sep 17 00:00:00 2001 From: "yosi.zanko" Date: Sun, 5 Nov 2023 19:45:21 +0200 Subject: [PATCH 2/2] CR-20734-add examples --- lib/interface/cli/commands/pipeline/get.cmd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/interface/cli/commands/pipeline/get.cmd.js b/lib/interface/cli/commands/pipeline/get.cmd.js index d92eab69c..72c6467ed 100644 --- a/lib/interface/cli/commands/pipeline/get.cmd.js +++ b/lib/interface/cli/commands/pipeline/get.cmd.js @@ -64,7 +64,9 @@ const command = new Command({ .option('page', { describe: 'Paginated page', default: DEFAULTS.GET_PAGINATED_PAGE, - }); + }) + .example('codefresh get pipeline --name PIPELINE_NAME', 'Get specific pipeline by it name') + .example('codefresh get pip --label tags=tag1,tag2', 'Get list of pipelines by tag name'); }, handler: async (argv) => { const { id: ids, name, d: decryptVariables, projectId, project: projectName, all } = argv;