Skip to content

Hint when an upgrade is available#676

Merged
omehegan merged 3 commits intomainfrom
upgrade_hint
Mar 4, 2026
Merged

Hint when an upgrade is available#676
omehegan merged 3 commits intomainfrom
upgrade_hint

Conversation

@mcncl
Copy link
Contributor

@mcncl mcncl commented Mar 3, 2026

Description

When a user checks their version, we can output a hint that there is a newer version of the CLI available to them.

Changes

Adds;

  • a getter for checking the latest release and comparing it to the current
  • tests for the getter/update notice
  • the version.go to use the update checker

Testing

  • Tests have run locally (with go test ./...)
  • Code is formatted (with go fmt ./...)

When a user checks their `version`, we can output a hint that there is a newer version of the CLI available to them.

Adds;
- a getter for checking the latest release and comparing it to the current
- tests for the getter/update notice

Changes;
- the `version.go` to use the update checker
@mcncl mcncl requested a review from a team as a code owner March 3, 2026 02:41
@omehegan omehegan merged commit 91282f7 into main Mar 4, 2026
1 check passed
@omehegan omehegan deleted the upgrade_hint branch March 4, 2026 02:59
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