Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature suggestion: bud run should launch browser (maybe with a flag to enable?) #333

Open
sneak opened this issue Nov 27, 2022 · 1 comment · May be fixed by #334
Open

feature suggestion: bud run should launch browser (maybe with a flag to enable?) #333

sneak opened this issue Nov 27, 2022 · 1 comment · May be fixed by #334
Labels
help wanted We'd love your help!

Comments

@sneak
Copy link

sneak commented Nov 27, 2022

When launching the dev server, I have to manually open a browser tab and load the URL. It would be cool if it called out to the OS and simply told it to open the dev server URL. The quick and dirty (on macOS) is to shell out to open $URL but I imagine there's a go module somewhere that does this.

Even a flag to do it would be fine, as I invoke bud run from a Makefile (make dev).

c.f.: https://talk.jekyllrb.com/t/automatically-start-browser-on-localhost-4000-after-jekyll-serve/4916/5

@sneak sneak changed the title feature suggestion: bud run should launch browser feature suggestion: bud run should launch browser (maybe with a flag to enable?) Nov 27, 2022
@matthewmueller
Copy link
Contributor

Hey @sneak, I'd definitely accept a PR with an --open flag! I've used this one in the past: https://github.com/pkg/browser

@matthewmueller matthewmueller added the help wanted We'd love your help! label Nov 28, 2022
@sneak sneak linked a pull request Nov 28, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted We'd love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants