fix(repo): render unset STATE as "-" to match CLUSTER and the column doc · Entire

fix(repo): render unset STATE as "-" to match CLUSTER and the column doc

b032d23→main·Soph·1w ago·1 file·+1 added/-1 removed

repoColumns documents CLUSTER/STATE as "-" when unset and CLUSTER already uses Or("-"), but STATE rendered blank. Align STATE on the same placeholder (applies to both repo list and repo-get via repoDetailRow).

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Sessions

01KWY58FQA1ZYK6DPW98GB233SView transcript

Changes

1

39 unmodified lines

40
41
42
43
43
44
45
46

39 unmodified lines

var repoColumns = []string{"ID", "NAME", "PROJECT", "CLUSTER", "STATE"}

func repoRow(r coreapi.Repo) []string {
    return []string{r.ID, r.Name, r.OwningProjectId, r.ClusterHost.Or("-"), r.State.Or("")}
    return []string{r.ID, r.Name, r.OwningProjectId, r.ClusterHost.Or("-"), r.State.Or("-")}
}

// repoDetailColumns / repoDetailRow extend the shared repo view with the

Mcmd/entire/cli/repo.go+1/-1