Skip to content

Fix version in turso group list output#982

Merged
penberg merged 1 commit into
mainfrom
fix-group-version
Jun 9, 2025
Merged

Fix version in turso group list output#982
penberg merged 1 commit into
mainfrom
fix-group-version

Conversation

@penberg

@penberg penberg commented Jun 9, 2025

Copy link
Copy Markdown
Contributor

The tech-preview version is just something the API returns for historical reasons. Therefore, output "turso-server" instead to avoid confusing people.

The `tech-preview` version is just something the API returns for
historical reasons. Therefore, output "turso-server" instead to avoid
confusing people.
@penberg penberg requested a review from Copilot June 9, 2025 09:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the groupsTable function to display "turso-server" instead of the historical "tech-preview" API version, reducing confusion for end users.

  • Introduces a local version variable with a conditional override for "tech-preview".
  • Updates the table row construction to use the new version value.
Comments suppressed due to low confidence (2)

internal/cmd/group.go:224

  • [nitpick] Consider renaming the local variable version to displayVersion or outputVersion to avoid shadowing group.Version and clarify its purpose.
version := "turso-server"

internal/cmd/group.go:224

  • Add a unit test for the groupsTable function to verify that when group.Version is "tech-preview", the output row uses "turso-server" as expected.
version := "turso-server"

Comment thread internal/cmd/group.go
@penberg penberg merged commit 77a1066 into main Jun 9, 2025
2 checks passed
@penberg penberg deleted the fix-group-version branch June 9, 2025 09:07
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.

4 participants