Conversation
There was a problem hiding this comment.
Pull request overview
Adds CLI release update checking so grounds version and grounds doctor can surface newer releases and, when possible, suggest how to upgrade. This fits the CLI’s diagnostics/versioning surface by extending the existing version and doctor commands.
Changes:
- Added release lookup, version comparison, and install-method detection under
internal/version. - Extended
grounds versionandgrounds doctorto report update status and richer diagnostic output. - Updated README command docs and added unit tests for the new version/doctor behavior.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
README.md |
Documents version --check and doctor’s update-warning behavior. |
internal/version/install_method.go |
Adds install source detection and upgrade command hints. |
internal/version/install_method_test.go |
Adds unit tests for install-method detection. |
internal/version/check.go |
Adds latest-release lookup and version comparison logic. |
internal/version/check_test.go |
Adds tests for release checking and version comparison. |
cmd/grounds/commands/version.go |
Extends grounds version with optional update checks and hints. |
cmd/grounds/commands/version_test.go |
Adds command-level coverage for version --check. |
cmd/grounds/commands/doctor.go |
Adds version checking and new structured doctor output/spinner flow. |
cmd/grounds/commands/doctor_test.go |
Adds tests for the new doctor rendering and version-check behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Type of Change
Related Issues
None
Testing
Checklist