Skip to content

Commit

Permalink
SAAS-5281 - new step types query param - freeText (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-codefresh authored Feb 4, 2020
1 parent 210fa85 commit b1c1eec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/interface/cli/commands/step/get.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const command = new Command({
.option('name', {
describe: 'Filter by name pattern',
})
.option('free-text', {
describe: 'Filter by multiple criteria: name, description, tags',
alias: 'text',
})
.option('tag', {
describe: 'Filter by a tag',
alias: 't',
Expand Down Expand Up @@ -79,6 +83,7 @@ const command = new Command({
const stage = argv.stage;
const official = argv.official;
const tag = argv.tag;
const freeText = argv['free-text'];
const onlyVersions = argv.versions;

if (onlyVersions) {
Expand Down Expand Up @@ -115,6 +120,7 @@ const command = new Command({
stage,
official,
tag,
freeText,
});
Output.print(_.map(_.get(steps, 'docs'), StepType.fromResponse));
}
Expand Down
8 changes: 8 additions & 0 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -5697,6 +5697,14 @@
},
"description": "Filter by a specific tag"
},
{
"in": "query",
"name": "freeText",
"schema": {
"type": "string"
},
"description": "Filter by name, description or tags"
},
{
"in": "query",
"name": "public",
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.42.1",
"version": "0.42.2",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit b1c1eec

Please sign in to comment.