Skip to content

Commit

Permalink
CR-20734-update documentation for pipeline label filter. (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
yosi-codefresh authored Nov 7, 2023
1 parent 010087f commit 88bc9b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/interface/cli/commands/pipeline/get.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`,
Expand All @@ -65,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;
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.87.1",
"version": "0.87.2",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 88bc9b9

Please sign in to comment.