File tree 2 files changed +10
-1
lines changed
lib/interface/cli/commands/pipeline 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
const debug = require ( 'debug' ) ( 'codefresh:cli:run:pipeline' ) ;
2
+ const colors = require ( 'colors' ) ;
2
3
const Command = require ( '../../Command' ) ;
3
4
const { crudFilenameOption } = require ( '../../helpers/general' ) ;
4
5
const RunLocalCommand = require ( './run.local' ) ;
@@ -23,6 +24,14 @@ const run = new Command({
23
24
} ,
24
25
builder : ( yargs ) => {
25
26
yargs
27
+ . check ( ( argv ) => {
28
+ const { trigger, branch, sha } = argv ;
29
+
30
+ if ( ( branch || sha ) && ! trigger ) {
31
+ console . log ( colors . yellow ( 'Deprecation warning: usage of --sha or --branch without --trigger flag is deprecated' ) ) ;
32
+ }
33
+ return true ;
34
+ } )
26
35
. option ( 'trigger' , {
27
36
describe : 'Trigger id or name' ,
28
37
alias : 't' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.81.2 " ,
3
+ "version" : " 0.81.3 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments