File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,19 @@ this is now disabled to speedup installations.
86
86
87
87
# ## `args`
88
88
89
- Extra arguments to pass to the cpanm command line.
89
+ Extra arguments to pass to the cpanm command line used by `install` or `cpanfile` .
90
90
91
91
example :
92
-
93
92
` ` ` yaml
94
93
args: "-L vendor"
95
94
` ` `
96
95
96
+ You can also use this option to run your own flavor
97
+ without the need of setting `install` or `cpanfile`.
98
+ ` ` ` yaml
99
+ args: "--installdeps ."
100
+ ` ` `
101
+
97
102
# ## `sudo`
98
103
99
104
Run commands as sudo : true | false [default: true]
Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ async function run() {
121
121
CMD_install = CMD_install . concat ( w_args ) ;
122
122
}
123
123
124
+ var has_run = false ;
125
+
124
126
/* install one ore more modules */
125
127
if ( install !== null && install . length ) {
126
128
// install one or more modules
@@ -130,6 +132,7 @@ async function run() {
130
132
var cmd = [ ...CMD_install ] ; /* clone array */
131
133
cmd = cmd . concat ( list ) ;
132
134
135
+ has_run = true ;
133
136
await do_exec ( cmd ) ;
134
137
}
135
138
@@ -142,6 +145,16 @@ async function run() {
142
145
143
146
var cmd = [ ...CMD_install ] ;
144
147
cmd . push ( "--cpanfile" , cpanfile_full_path , "--installdeps" , "." ) ;
148
+
149
+ has_run = true ;
150
+ await do_exec ( cmd ) ;
151
+ }
152
+
153
+ /* custom run with args */
154
+ if ( has_run === false && w_args . length ) {
155
+ console . log ( `custom run with args` ) ;
156
+ var cmd = [ ...CMD_install ] ;
157
+ has_run = true ;
145
158
await do_exec ( cmd ) ;
146
159
}
147
160
You can’t perform that action at this time.
0 commit comments