You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Motivation for the change, related issues
FixesAutomattic/wordpress-playground-private#12
Integrate CLI with `wp-now` features. This PR adds a `--launch-browser`
flag to CLI, default false.
## Implementation details
It backport the `openInDefaultBrowser` function found in wp-now to CLI
`startServer`.
## Testing Instructions (or ideally a Blueprint)
Run the script as `bun packages/playground/cli/src/cli.ts server
--launch-browser` or similar. The flag should start the default browser.
'Mount a directory to the PHP runtime before installing WordPress. You can provide --mount-before-install multiple times. Format: /host/path:/vfs/path',
82
86
type: 'array',
@@ -91,12 +95,16 @@ async function run() {
91
95
describe: 'Blueprint to execute.',
92
96
type: 'string',
93
97
})
94
-
.option('skipWordPressSetup',{
98
+
.option('skip-wordpress-setup',{
95
99
describe:
96
100
'Do not download, unzip, and install WordPress. Useful for mounting a pre-configured WordPress directory at /wordpress.',
97
101
type: 'boolean',
98
102
default: false,
99
103
})
104
+
.deprecateOption(
105
+
'skipWordPressSetup',
106
+
'Use --skip-wordpress-setup instead.'
107
+
)
100
108
.option('quiet',{
101
109
describe: 'Do not output logs and progress messages.',
102
110
type: 'boolean',
@@ -108,6 +116,11 @@ async function run() {
108
116
type: 'boolean',
109
117
default: false,
110
118
})
119
+
.option('launch-browser',{
120
+
describe: 'Launch the default browser after starting the server.',
0 commit comments