Skip to content

Commit c3d64ec

Browse files
author
Enda Phelan
committed
fix: remove text bolding
1 parent 1ac1b51 commit c3d64ec

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

pkg/cmd/kafka/consumergroup/describe/describe.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
strimziadminclient "github.com/redhat-developer/app-services-cli/pkg/api/strimzi-admin/client"
1717
"github.com/redhat-developer/app-services-cli/pkg/cmd/factory"
1818
"github.com/redhat-developer/app-services-cli/pkg/cmd/flag"
19-
"github.com/redhat-developer/app-services-cli/pkg/color"
2019
"github.com/redhat-developer/app-services-cli/pkg/connection"
2120
"github.com/redhat-developer/app-services-cli/pkg/dump"
2221
"github.com/redhat-developer/app-services-cli/pkg/iostreams"
@@ -204,7 +203,7 @@ func printConsumerGroupDetails(w io.Writer, consumerGroupData strimziadminclient
204203
activeMembersCount := cgutil.GetActiveConsumersCount(consumers)
205204
partitionsWithLagCount := cgutil.GetPartitionsWithLag(consumers)
206205

207-
fmt.Fprintln(w, color.Bold(localizer.MustLocalizeFromID("kafka.consumerGroup.describe.output.activeMembers")), activeMembersCount, "\t", color.Bold(localizer.MustLocalizeFromID("kafka.consumerGroup.describe.output.partitionsWithLag")), partitionsWithLagCount)
206+
fmt.Fprintln(w, localizer.MustLocalizeFromID("kafka.consumerGroup.describe.output.activeMembers"), activeMembersCount, "\t", localizer.MustLocalizeFromID("kafka.consumerGroup.describe.output.partitionsWithLag"), partitionsWithLagCount)
208207
fmt.Fprintln(w, "")
209208

210209
rows := mapConsumerGroupDescribeToTableFormat(consumers)

pkg/color/color.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
package color
33

44
import (
5-
"fmt"
6-
75
"github.com/fatih/color"
86
)
97

@@ -26,7 +24,3 @@ func Success(format string) string {
2624
func Error(format string) string {
2725
return color.HiRedString(format)
2826
}
29-
30-
func Bold(s string) string {
31-
return fmt.Sprintf("\033[1m%v\033[0m", s)
32-
}

0 commit comments

Comments
 (0)