Skip to content

Commit

Permalink
add formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush committed Dec 5, 2024
1 parent 80801bf commit 89b36a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion operator/pkg/cli/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ func (kc *KafkaClient) InspectStep(
fmt.Printf("%s\n", string(b))
} else {
for _, topic := range ki.Topics {
fmt.Printf("\nTopic: %s\n", topic.Name)
for _, msg := range topic.Msgs {
if verbose {
fmt.Printf("%s\t%s\t%s\t", topic.Name, msg.Key, msg.Value)
fmt.Printf("%s\t%s\t", msg.Key, msg.Value)
for k, v := range msg.Headers {
fmt.Printf("\t%s=%s", k, v)
}
Expand All @@ -265,6 +266,7 @@ func (kc *KafkaClient) InspectStep(
fmt.Printf("%s\t%s\t%s\n", topic.Name, msg.Key, msg.Value)
}
}
fmt.Print("----------------\n")
}
}

Expand Down

0 comments on commit 89b36a5

Please sign in to comment.