Skip to content

Commit d0f378a

Browse files
Cr 15741-revert (#771)
* validate codefresh run trigger args * validate the options at command level, instead inside the logic it self * fix error msg * trigger * Revert "validate codefresh run trigger args (#770)" This reverts commit a6c04ad. * revert
1 parent a6c04ad commit d0f378a

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

lib/interface/cli/commands/pipeline/run.cmd.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ const run = new Command({
2323
},
2424
builder: (yargs) => {
2525
yargs
26-
.check((argv) => {
27-
const { trigger, branch, sha } = argv;
28-
29-
if ((branch || sha) && !trigger) {
30-
throw new Error('Validation Error: --trigger is required when using --sha or --branch');
31-
}
32-
return true;
33-
})
3426
.option('trigger', {
3527
describe: 'Trigger id or name',
3628
alias: 't',

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.81.1",
3+
"version": "0.81.2",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)