Skip to content

Commit b1c1eec

Browse files
SAAS-5281 - new step types query param - freeText (#404)
1 parent 210fa85 commit b1c1eec

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

lib/interface/cli/commands/step/get.cmd.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const command = new Command({
2929
.option('name', {
3030
describe: 'Filter by name pattern',
3131
})
32+
.option('free-text', {
33+
describe: 'Filter by multiple criteria: name, description, tags',
34+
alias: 'text',
35+
})
3236
.option('tag', {
3337
describe: 'Filter by a tag',
3438
alias: 't',
@@ -79,6 +83,7 @@ const command = new Command({
7983
const stage = argv.stage;
8084
const official = argv.official;
8185
const tag = argv.tag;
86+
const freeText = argv['free-text'];
8287
const onlyVersions = argv.versions;
8388

8489
if (onlyVersions) {
@@ -115,6 +120,7 @@ const command = new Command({
115120
stage,
116121
official,
117122
tag,
123+
freeText,
118124
});
119125
Output.print(_.map(_.get(steps, 'docs'), StepType.fromResponse));
120126
}

openapi.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5697,6 +5697,14 @@
56975697
},
56985698
"description": "Filter by a specific tag"
56995699
},
5700+
{
5701+
"in": "query",
5702+
"name": "freeText",
5703+
"schema": {
5704+
"type": "string"
5705+
},
5706+
"description": "Filter by name, description or tags"
5707+
},
57005708
{
57015709
"in": "query",
57025710
"name": "public",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.42.1",
3+
"version": "0.42.2",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)