File tree 3 files changed +18
-1
lines changed 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,14 @@ Which perl path to use. Default to use `perl` from the current `PATH`.
106
106
107
107
Where to install `cpm`. Default value is `$Config{installsitescript}/cpm`.
108
108
109
+ # ## `verbose`
110
+
111
+ Boolean variable used to control the `-v` flag
112
+ Possible values : true | false [default: false]
113
+
114
+ Note : this was previously set to true by default,
115
+ this is now disabled to speedup installations.
116
+
109
117
# ## `version`
110
118
111
119
Which version/tag of `cpm` to install. Default is 'master' to use the latest version.
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ inputs:
31
31
required : false
32
32
default : true
33
33
34
+ verbose :
35
+ description : " Run cpm with -v flag or not"
36
+ required : false
37
+ default : false
38
+
34
39
perl :
35
40
description : " Path of perl to use default to currtent PATH"
36
41
required : false
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ async function run() {
101
101
const tests = core . getInput ( "tests" ) ;
102
102
const dash_g = core . getInput ( "global" ) ;
103
103
const args = core . getInput ( "args" ) ;
104
+ const verbose = core . getInput ( "verbose" ) ;
104
105
105
106
const w_tests = is_true ( tests ) ? "--test" : "--no-test" ;
106
107
var w_args = [ ] ;
@@ -115,9 +116,12 @@ async function run() {
115
116
cpm_location ,
116
117
"install" ,
117
118
"--show-build-log-on-failure" ,
118
- "-v" ,
119
119
w_tests ,
120
120
] ;
121
+
122
+ if ( is_true ( verbose ) ) {
123
+ CMD_install . push ( "-v" ) ;
124
+ }
121
125
if ( is_true ( dash_g ) ) {
122
126
CMD_install . push ( "-g" ) ;
123
127
}
You can’t perform that action at this time.
0 commit comments