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

Implement --openBrowser CLI flag #163

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Implement --openBrowser CLI flag #163

merged 3 commits into from
Jan 29, 2025

Conversation

CtrlSpice
Copy link
Owner

  • Implement an --openBrowser flag (true by default)
  • Move the logic for opening the browser into main, where the CLI stuff happens

@CtrlSpice CtrlSpice requested a review from jmorrell January 27, 2025 21:33
Copy link
Collaborator

@jmorrell jmorrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capybara browsing the internet in a yuzu bath

desktopcollector/main.go Show resolved Hide resolved
Comment on lines 88 to 89
rootCmd.Flags().BoolVar(&openBrowserFlag, "openBrowser", true, "Open the browser automatically on launch")
rootCmd.Flags().IntVar(&browserPortFlag, "browserPort", 8000, "The port number where we expose our data")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think kebab-case is more traditional for CLI arguments

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a65dca8d-7c4c-4abc-8b2e-eef24d018e7b-1738179709045
kebab-it-is-then

@CtrlSpice CtrlSpice merged commit 8b67c44 into main Jan 29, 2025
2 checks passed
@CtrlSpice CtrlSpice deleted the fix-local-dev branch January 29, 2025 20:01
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.

2 participants