feat: add shopware-cli hub updates command - #1155
feat: add shopware-cli hub updates command#1155Bojan Rajh (bojanrajh) with Copilot wants to merge 3 commits into
shopware-cli hub updates command#1155Conversation
shopware-cli hub updates command
|
Hello Bojan Rajh (@bojanrajh), what's the status of this work? We would need to align on the problem this solves for the user and the UX around it so that we are sure it fits to our roadmap and aligns with team plans. |
|
somethings (@lasomethingsomething) This was a single-prompt experiment to show some updates from the Hub in CLI. Although it's not directly connected to the project setup or extension management, we could see it as an opt-in/opt-out middleware that runs in non-ci/dev environment. The CLI itself could already notify the user about new versions, but we can also serve public announcements from Discord and other news from the website (like PaaS, Copilot, Payments and Insider previews). Let's say we would display 1-5 events per week, or 10 per month. I guess the CLI would poll the hub every X requests/minutes/hours, show new events (normalized as Going more into personalization with the Hub, we could display notifications (clubs, academy, comments, ...) which would require more deeper integration for the auth flow. Probably not feasible at the moment, but could get to that in future. Either way, you can close this and we can either track it in Jira or create an issue in this repo. |
|
Bojan Rajh (@bojanrajh) Thanks for the information. This is not something I would want to introduce in the CLI without having a serious discussion about the problem this solves, user feedback indicating that they want to see this adopted in the CLI, and an understanding of the value it brings to users Please don't move forward until we've had that discussion. For now, I will close this PR. |
Adds a new top-level
hub updatescommand that fetches and displays the latest events from the Shopware Community Hub (https://hub.shopware.com). Hub and Account are separate APIs — no account authentication is required.New packages
internal/hub-api/— standalone HTTP client for the Community Hub public API (GET /api/updates); 30 s timeout, fully context-cancellable, base URL overridable viaSHOPWARE_CLI_HUB_URLcmd/hub/—hubcommand group withupdatessubcommandhub updatesbehaviourevent.event, sorted alphabetically by human-readable label (e.g.hub:release:created→New releases); unknown event types fall back to the raw stringtext (url)in non-TTY (pipes, CI)