Skip to content

Commit 8399ceb

Browse files
authored
Merge pull request #9 from perl-actions/verbose-arg
Disable -v and add verbose option to control it
2 parents df25db9 + d5fa13a commit 8399ceb

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ Which perl path to use. Default to use `perl` from the current `PATH`.
106106

107107
Where 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

111119
Which version/tag of `cpm` to install. Default is 'master' to use the latest version.

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)