We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adb5c6c commit a6c04adCopy full SHA for a6c04ad
lib/interface/cli/commands/pipeline/run.cmd.js
@@ -23,6 +23,14 @@ const run = new Command({
23
},
24
builder: (yargs) => {
25
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
+ })
34
.option('trigger', {
35
describe: 'Trigger id or name',
36
alias: 't',
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "codefresh",
3
- "version": "0.81.0",
+ "version": "0.81.1",
4
"description": "Codefresh command line utility",
5
"main": "index.js",
6
"preferGlobal": true,
0 commit comments