Skip to content

Commit 1577984

Browse files
committed
Fix build
1 parent f4d1f11 commit 1577984

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/kafka/group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var groupListCmd = &cobra.Command{
5151
}
5252

5353
table := tablewriter.NewWriter(os.Stdout)
54-
table.SetHeader([]string{"Consumer Group", "State", "Protocol Type", "Protocol", "Members"})
54+
table.Header([]string{"Consumer Group", "State", "Protocol Type", "Protocol", "Members"})
5555

5656
for _, detail := range details {
5757
table.Append([]string{detail.GroupId, detail.State, detail.ProtocolType, detail.Protocol, fmt.Sprintf("%d", len(detail.Members))})

cmd/kafka/topic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func topicListCmd() *cobra.Command {
4848
}
4949

5050
table := tablewriter.NewWriter(os.Stdout)
51-
table.SetHeader([]string{"Topic", "Number of Partitions", "Replication Factor"})
51+
table.Header([]string{"Topic", "Number of Partitions", "Replication Factor"})
5252

5353
for k, v := range topics {
5454
table.Append([]string{k, fmt.Sprintf("%d", v.NumPartitions), fmt.Sprintf("%d", v.ReplicationFactor)})

0 commit comments

Comments
 (0)