File tree Expand file tree Collapse file tree 9 files changed +16
-9
lines changed Expand file tree Collapse file tree 9 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ async function startCommandLine() {
63
63
global : false ,
64
64
} )
65
65
. demandCommand ( 1 , 'You need at least one command before moving on' )
66
+ . parserConfiguration ( {
67
+ 'boolean-negation' : false ,
68
+ } )
66
69
. wrap ( null )
67
70
. version ( false )
68
71
. help ( 'help' )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const install = new Command({
35
35
} )
36
36
. option ( 'cleanup' , {
37
37
description : 'delete test pods upon completion (default false)' ,
38
- default : ' false' ,
38
+ default : false ,
39
39
type : 'boolean' ,
40
40
} ) ;
41
41
} ,
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ const command = new Command({
34
34
alias : 'a' ,
35
35
describe : 'Return images from all possible registries (by default only r.cfcr.io images will be returned)' ,
36
36
default : false ,
37
+ type : 'boolean' ,
37
38
} )
38
39
. option ( 'label' , {
39
40
describe : 'Filter by a list of annotated labels' ,
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ const run = new Command({
61
61
describe : 'Ignore cached images' ,
62
62
alias : 'nc' ,
63
63
default : false ,
64
+ type : 'boolean' ,
64
65
} )
65
66
. option ( 'annotation' , {
66
67
describe : 'Add annotations to created build' ,
@@ -72,11 +73,13 @@ const run = new Command({
72
73
describe : 'Report notifications about pipeline execution' ,
73
74
alias : 'en' ,
74
75
default : false ,
76
+ type : 'boolean' ,
75
77
} )
76
78
. option ( 'reset-volume' , {
77
79
describe : 'Reset pipeline cached volume' ,
78
80
alias : 'rv' ,
79
81
default : false ,
82
+ type : 'boolean' ,
80
83
} )
81
84
. option ( 'variable' , {
82
85
describe : 'Set build variables' ,
@@ -95,7 +98,7 @@ const run = new Command({
95
98
} )
96
99
. option ( 'local' , {
97
100
describe : 'Run pipeline on your local docker machine' ,
98
- type : Boolean ,
101
+ type : 'boolean' ,
99
102
default : false ,
100
103
} )
101
104
. option ( 'local-volume' , {
@@ -106,6 +109,7 @@ const run = new Command({
106
109
describe : 'Ignore Codefresh cache optimizations' ,
107
110
alias : 'ncfc' ,
108
111
default : false ,
112
+ type : 'boolean' ,
109
113
} )
110
114
. option ( 'only' , {
111
115
describe : 'run only specifc steps' ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const get = new Command({
37
37
. option ( 'watch' , {
38
38
describe : 'Watching updates to a particular resource' ,
39
39
alias : 'w' ,
40
- type : Boolean ,
40
+ type : 'boolean' ,
41
41
default : false ,
42
42
group : 'Output Options' ,
43
43
} )
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ const command = new Command({
37
37
describe : 'Disable email notifications for users' ,
38
38
alias : 'no-notify' ,
39
39
required : false ,
40
- type : Boolean ,
41
- default : false
40
+ type : 'boolean' ,
41
+ default : false ,
42
42
} )
43
43
. example ( 'codefresh synchronize teams [client-name] -t [client-type] -tk [accessToken]' , 'Synchronize team with group' ) ;
44
44
} ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const command = new Command({
27
27
. option ( 'public' , {
28
28
describe : 'wether trigger-event is public (system-wide): can be linked to any pipeline in any account' ,
29
29
default : false ,
30
+ type : 'boolean' ,
30
31
} )
31
32
. option ( 'secret' , {
32
33
describe : 'trigger-event secret (omit to auto-generate)' ,
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ const command = new Command({
36
36
. option ( 'public' , {
37
37
describe : 'get public trigger-event(s)' ,
38
38
default : true ,
39
+ type : 'boolean' ,
39
40
} )
40
41
. example ( 'codefresh get trigger-event registry:dockerhub:codefresh:fortune:push' , 'Get DockerHub codefresh/fortune push `trigger-event`' )
41
42
. example ( 'codefresh get trigger-event --type registry --kind dockerhub --filter *codefresh' , 'Get all DockerHub codefresh/* push `trigger-events`' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.39.6 " ,
3
+ "version" : " 0.40.0 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
94
94
"setupFiles" : [
95
95
" ./test-setup.js"
96
96
]
97
- },
98
- "yargs" : {
99
- "boolean-negation" : false
100
97
}
101
98
}
You can’t perform that action at this time.
0 commit comments