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

x/pkgsite/cmd/pkgsite: flag to open browser #60002

Closed
stevenh opened this issue May 5, 2023 · 2 comments
Closed

x/pkgsite/cmd/pkgsite: flag to open browser #60002

stevenh opened this issue May 5, 2023 · 2 comments
Labels
Milestone

Comments

@stevenh
Copy link
Contributor

stevenh commented May 5, 2023

When running pkgsite locally it would be great to have a command line flag to automatically load the site in the users browser.

@gopherbot gopherbot added this to the Unreleased milestone May 5, 2023
stevenh added a commit to stevenh/pkgsite that referenced this issue May 5, 2023
Add -open command line flag to cmd/pkgsite which tries to open a
browser to the newly running server.

This provides a simple way to open a browser to pkgsite service
without having do paste the URL into a browser manually.

It leverages the internal/browser package from go for this
functionality as used by go tool cover -html.

Fixes golang/go#60002
stevenh added a commit to stevenh/pkgsite that referenced this issue May 5, 2023
Add -open command line flag to cmd/pkgsite which tries to open a
browser to the newly running server.

This provides a simple way to open a browser to pkgsite service
without having do paste the URL into a browser manually.

It leverages the internal/browser package from go for this
functionality as used by go tool cover -html.

Fixes golang/go#60002
@gopherbot
Copy link

Change https://go.dev/cl/493075 mentions this issue: x/pkgsite: add -open to open browser

@seankhliao
Copy link
Member

cc @golang/pkgsite

@seankhliao seankhliao changed the title x/pkgsite: flag to open browser x/pkgsite/cmd/pkgsite: flag to open browser May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants