File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ function runCommand() {
57
57
const passedCmd = process . argv . slice ( 2 ) ;
58
58
59
59
// No command specified or invalid command.
60
- if ( ! passedCmd . length || ! ( passedCmd [ 0 ] in commands ) ) {
60
+ if ( ! passedCmd . length || ! ( passedCmd in commands ) ) {
61
61
create ( { directory : passedCmd [ 0 ] } ) ;
62
62
}
63
63
64
- // cli.parse( process.argv );
64
+ cli . parse ( process . argv ) ;
65
65
}
66
66
67
67
function longDescFn ( k ) {
Original file line number Diff line number Diff line change @@ -13,7 +13,13 @@ function getCreatePrompts(params) {
13
13
}
14
14
return true ;
15
15
} ,
16
- default : params . directory ,
16
+ default : function ( ) {
17
+ if ( '' === params . directory ) {
18
+ return 'wplocaldocker' ;
19
+ } else {
20
+ return params . directory + '.dev' ;
21
+ }
22
+ } ,
17
23
when : function ( answers ) {
18
24
return ( '' === params . directory ) ;
19
25
}
You can’t perform that action at this time.
0 commit comments