File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 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`.
106106
107107Where to install `cpm`. Default value is `$Config{installsitescript}/cpm`.
108108
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+
109117# ## `version`
110118
111119Which 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:
3131 required : false
3232 default : true
3333
34+ verbose :
35+ description : " Run cpm with -v flag or not"
36+ required : false
37+ default : false
38+
3439 perl :
3540 description : " Path of perl to use default to currtent PATH"
3641 required : false
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ async function run() {
101101 const tests = core . getInput ( "tests" ) ;
102102 const dash_g = core . getInput ( "global" ) ;
103103 const args = core . getInput ( "args" ) ;
104+ const verbose = core . getInput ( "verbose" ) ;
104105
105106 const w_tests = is_true ( tests ) ? "--test" : "--no-test" ;
106107 var w_args = [ ] ;
@@ -115,9 +116,12 @@ async function run() {
115116 cpm_location ,
116117 "install" ,
117118 "--show-build-log-on-failure" ,
118- "-v" ,
119119 w_tests ,
120120 ] ;
121+
122+ if ( is_true ( verbose ) ) {
123+ CMD_install . push ( "-v" ) ;
124+ }
121125 if ( is_true ( dash_g ) ) {
122126 CMD_install . push ( "-g" ) ;
123127 }
You can’t perform that action at this time.
0 commit comments