Skip to content

feat: add shopware-cli hub updates command#1155

Draft
Bojan Rajh (bojanrajh) with Copilot wants to merge 3 commits into
mainfrom
copilot/add-cli-command-fetch-events
Draft

feat: add shopware-cli hub updates command#1155
Bojan Rajh (bojanrajh) with Copilot wants to merge 3 commits into
mainfrom
copilot/add-cli-command-fetch-events

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Adds a new top-level hub updates command 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 via SHOPWARE_CLI_HUB_URL
  • cmd/hub/hub command group with updates subcommand

hub updates behaviour

  • Groups items by event.event, sorted alphabetically by human-readable label (e.g. hub:release:createdNew releases); unknown event types fall back to the raw string
  • Renders item titles as OSC 8 clickable hyperlinks in TTY contexts; degrades to text (url) in non-TTY (pipes, CI)
  • Handles empty feed and API errors gracefully
$ shopware-cli hub updates

New releases
  • Acme Plugin (https://hub.shopware.com/…)
    2024-06-01

Updated releases
  • Other Plugin (https://hub.shopware.com/…)
    2024-05-30

Copilot AI changed the title feat: add shopware-cli hub updates command feat: add shopware-cli hub updates command Jul 2, 2026
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.

3 participants