Skip to content

Commit 54779ba

Browse files
committed
Fix version in turso group list output
The `tech-preview` version is just something the API returns for historical reasons. Therefore, output "turso-server" instead to avoid confusing people.
1 parent 5a908fd commit 54779ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/cmd/group.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ func destroyGroup(client *turso.Client, name string) error {
221221
func groupsTable(groups []turso.Group) [][]string {
222222
var data [][]string
223223
for _, group := range groups {
224-
row := []string{group.Name, formatLocations(group.Locations, group.Primary), group.Version, aggregateGroupStatus(group)}
224+
version := "turso-server"
225+
if group.Version != "tech-preview" {
226+
version = group.Version
227+
}
228+
row := []string{group.Name, formatLocations(group.Locations, group.Primary), version, aggregateGroupStatus(group)}
225229
data = append(data, row)
226230
}
227231
return data

0 commit comments

Comments
 (0)