Skip to content

Commit

Permalink
fix(featctl/cmd): print entity instead of entityId
Browse files Browse the repository at this point in the history
  • Loading branch information
jinghancc committed Nov 12, 2021
1 parent 1cded19 commit b81c7e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions featctl/cmd/list_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ func printFeatureGroupsInASCIITable(groups typesv2.FeatureGroupList) error {
}

func groupHeader() []string {
return []string{"Name", "EntityID", "Description", "OnlineRevision", "CreateTime", "ModifyTime"}
return []string{"GroupName", "GroupID", "EntityName", "Description", "OnlineRevision", "CreateTime", "ModifyTime"}
}

func groupRecord(g *typesv2.FeatureGroup) []string {
onlineRevision := "<NULL>"
if g.OnlineRevision != nil {
onlineRevision = fmt.Sprint(*g.OnlineRevision)
}
return []string{g.Name, serializeInt16(g.EntityID), g.Description, onlineRevision,
return []string{g.Name, serializeInt16(g.ID), g.Entity.Name, g.Description, onlineRevision,
g.CreateTime.Format(time.RFC3339), g.ModifyTime.Format(time.RFC3339)}
}

0 comments on commit b81c7e3

Please sign in to comment.