File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,12 @@ Possible values: true | false [default: true]
88
88
89
89
Extra arguments to pass to the cpm command line.
90
90
91
+ You can also use this option to run your own flavor
92
+ without the need of setting `install` or `cpanfile`.
93
+ ` ` ` yaml
94
+ args: "--installdeps ."
95
+ ` ` `
96
+
91
97
# ## `sudo`
92
98
93
99
Run commands as sudo : true | false [default: true]
Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ async function run() {
125
125
CMD_install = CMD_install . concat ( w_args ) ;
126
126
}
127
127
128
+ var has_run = false ;
129
+
128
130
/* install one ore more modules */
129
131
if ( install !== null && install . length ) {
130
132
// install one or more modules
@@ -134,6 +136,7 @@ async function run() {
134
136
var cmd = [ ...CMD_install ] ; /* clone array */
135
137
cmd = cmd . concat ( list ) ;
136
138
139
+ has_run = true ;
137
140
await do_exec ( cmd ) ;
138
141
}
139
142
@@ -146,6 +149,16 @@ async function run() {
146
149
147
150
var cmd = [ ...CMD_install ] ;
148
151
cmd . push ( "--cpanfile" , cpanfile_full_path ) ;
152
+
153
+ has_run = true ;
154
+ await do_exec ( cmd ) ;
155
+ }
156
+
157
+ /* custom run with args */
158
+ if ( has_run === false && w_args . length ) {
159
+ console . log ( `custom run with args` ) ;
160
+ var cmd = [ ...CMD_install ] ;
161
+ has_run = true ;
149
162
await do_exec ( cmd ) ;
150
163
}
151
164
}
You can’t perform that action at this time.
0 commit comments