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

add UI cmd #355

Merged
merged 1 commit into from
Jun 28, 2024
Merged

add UI cmd #355

merged 1 commit into from
Jun 28, 2024

Conversation

k3llymariee
Copy link
Contributor

go run . dev-server ui should pop open a new browser window for the UI

also adds a log line when the server starts to include those instructions as well ✨

@@ -57,6 +57,7 @@ func (c LDClient) RunServer(ctx context.Context, accessToken, baseURI, devStream
handler = handlers.CombinedLoggingHandler(os.Stdout, handler)
handler = handlers.RecoveryHandler(handlers.PrintRecoveryStack(true))(handler)
fmt.Println("Server running on 0.0.0.0:8765")
fmt.Println("Access the UI for toggling overrides at http://localhost:8765/ui or by running `ldcli dev-server ui`")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
fmt.Println("Access the UI for toggling overrides at http://localhost:8765/ui or by running `ldcli dev-server ui`")
fmt.Println("✨✨✨ Access the UI for toggling overrides at http://localhost:8765/ui or by running `ldcli dev-server ui` ✨✨✨")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mike-zorn oh I've tried to get emoji in the CLI before trust me - but apparently there's a risk that some terminals may not support it 😭

Copy link
Contributor

Choose a reason for hiding this comment

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

😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭

@k3llymariee k3llymariee merged commit 4e0cdba into moonshot-ld-dev-server Jun 28, 2024
1 check failed
@k3llymariee k3llymariee deleted the moonshots/add-ui-cmd branch June 28, 2024 20:16
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