Skip to content

Print web app URL in CLI start command #12016

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

Merged
merged 6 commits into from
Dec 11, 2024
Merged

Print web app URL in CLI start command #12016

merged 6 commits into from
Dec 11, 2024

Conversation

gtsiolis
Copy link
Member

@gtsiolis gtsiolis commented Dec 10, 2024

Motivation

See relevant discussion where initially the idea of linking to the web app was mentioned.

Changes

BEFORE AFTER
Screenshot 2024-12-11 at 13 49 29 Screenshot 2024-12-11 at 22 21 51

@@ -908,6 +909,10 @@ def print_profile() -> None:
f" :bust_in_silhouette: [bold]Profile:[/bold] [blue]{', '.join(config.LOADED_PROFILES)}[/blue]"
)

def print_app() -> None:
console.print(
f" :globe_with_meridians: [bold]App:[/bold] \033https://app.localstack.cloud\033"
Copy link
Member Author

Choose a reason for hiding this comment

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

note: Alternatively, we could use a short URL like https://localstack.dev/app so we can track usage.

Copy link

github-actions bot commented Dec 11, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 51m 33s ⏱️ + 1m 54s
3 881 tests ±0  3 565 ✅ ±0  316 💤 ±0  0 ❌ ±0 
3 883 runs  ±0  3 565 ✅ ±0  318 💤 ±0  0 ❌ ±0 

Results for commit f4a7dc8. ± Comparison against base commit abb35c3.

♻️ This comment has been updated with latest results.

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the addition and the great PR description with the screenshots! 🚀
Some checks on your PR are currently failing, but they are easy to fix:

  • "Enforce PR Labels" fails because you need to define the semver for your change by setting one of the semver: <bump-type> labels.
  • "ci/circleci: preflight" fails because your code is not passing our linting rules.
    • You can easily fix that by using the make format and make lint commands.
    • You can make sure that this is checked before each of your local commits by installing our pre-commit rules with make init-precommit.

Let me know if you need any help :)

@gtsiolis gtsiolis added the semver: patch Non-breaking changes which can be included in patch releases label Dec 11, 2024
@gtsiolis
Copy link
Member Author

gtsiolis commented Dec 11, 2024

Awesome—thanks for the hints, @alexrashed!

  • Added semver: patch Non-breaking changes which can be included in patch releases
  • Fixed lint errors in 4f802a1
  • Replaced the URL with a short URL in ec8234c to measure usage — happy to revert, too.

Could you take another look and let me know what you think about this change? 😃

@gtsiolis gtsiolis requested a review from alexrashed December 11, 2024 08:27
Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Thanks a lot for addressing the comments! I think it is looking great! 🚀
But we should clarify the two comments before merging.
Also, please be aware that the changes in the CLI will only take effect with the next release and not immediately after the merge to master.
Other than the emulator Docker image, we only publish the CLI on explicit tagged releases.

@gtsiolis
Copy link
Member Author

Thanks for the insights and taking another look, @alexrashed!

[...] changes in the CLI will only take effect with the next release and not immediately after the merge to master.

Sounds good—there'a absolutely no rush to get this in.

Addressed both discussions above.

Since we're here I thought we could consider also dropping the emojis at the start now that it's getting crowded up there to make it a bit more professional—happy to keep the emojis in. What do you think?

BEFORE AFTER (with emojis) AFTER (with hyphens)
Screenshot 2024-12-11 at 13 49 29 Screenshot 2024-12-11 at 13 51 06 Screenshot 2024-12-11 at 13 48 53

Copy link
Member

@alexrashed alexrashed left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the comments! And thanks for proactively jumping on these changes! 🦸🏽
I honestly don't really have an opinion on the emojis. I somewhat like them, but I can see that it's getting a bit too playful. 😉

@gtsiolis
Copy link
Member Author

Thanks, @alexrashed! ❤️ Removed the emojis as they also become harder to see in dark themes, and updated the PR description to reflect the latest changes.

Merging once the checks pass. 🚀

@gtsiolis gtsiolis changed the title Add app URL in start command Print web app URL in start command Dec 11, 2024
@gtsiolis gtsiolis merged commit 5163c57 into master Dec 11, 2024
35 checks passed
@gtsiolis gtsiolis deleted the gt/add-app-url branch December 11, 2024 12:57
gtsiolis added a commit that referenced this pull request Dec 11, 2024
@gtsiolis gtsiolis self-assigned this Dec 11, 2024
gtsiolis added a commit that referenced this pull request Feb 4, 2025
This will update the CLI output to include the web app URL added in #12016.
gtsiolis added a commit that referenced this pull request Feb 4, 2025
This will update the CLI output to include the web app URL added in #12016.
gtsiolis added a commit that referenced this pull request Feb 4, 2025
This will update the CLI output to include the web app URL added in #12016.
@gtsiolis gtsiolis changed the title Print web app URL in start command Print web app URL in CLI start command May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants