Skip to content

WP-NOW: add argument to skip opening the browser#271

Merged
sejas merged 2 commits intotrunkfrom
add/wp-now-skip-browser-flag
May 22, 2024
Merged

WP-NOW: add argument to skip opening the browser#271
sejas merged 2 commits intotrunkfrom
add/wp-now-skip-browser-flag

Conversation

@sejas
Copy link
Copy Markdown
Collaborator

@sejas sejas commented May 21, 2024

What?

It adds a new flag --skip-browser to avoid opening the browser by default.

I'm open to feedback for other names. When using --no-open yargs returns errors. It seems the argument cannot start by --no-.

Why?

Multiple users asked for this feature.

Testing Instructions

  • Run:
    • nvm use && npm install && npx nx build wp-now
    • node dist/packages/wp-now/cli.js start --skip-browser
  • Observe wp-now starts correctly and it doesn't automatically open the browser.

Screencast

wp-now-skip-browser-opens-only-on-click.mp4

@sejas sejas self-assigned this May 21, 2024
@sejas sejas requested review from adamziel, bgrgicak and wojtekn May 21, 2024 19:26
@sejas sejas merged commit 6aab487 into trunk May 22, 2024
@sejas sejas deleted the add/wp-now-skip-browser-flag branch May 22, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quiet startup mode

2 participants