From 81ecac0b3606a5dd1e854f813c42f99fd2686dc6 Mon Sep 17 00:00:00 2001 From: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:32:02 +0530 Subject: [PATCH] updated the color for latest logo Signed-off-by: Dipankar Das <65275144+dipankardas011@users.noreply.github.com> --- cli/cmd/version.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/cmd/version.go b/cli/cmd/version.go index b7887c4..8896e96 100644 --- a/cli/cmd/version.go +++ b/cli/cmd/version.go @@ -57,12 +57,12 @@ var versionCmd = &cobra.Command{ y := []string{} colorCode := map[int]func(str string) string{ - 0: func(str string) string { return color.HiMagentaString(str) }, - 1: func(str string) string { return color.HiBlueString(str) }, - 2: func(str string) string { return color.HiCyanString(str) }, - 3: func(str string) string { return color.HiGreenString(str) }, - 4: func(str string) string { return color.HiYellowString(str) }, - 5: func(str string) string { return color.HiRedString(str) }, + 0: func(str string) string { return color.New(color.BgHiMagenta).Add(color.FgHiBlack).SprintFunc()(str) }, + 1: func(str string) string { return color.New(color.BgHiBlue).Add(color.FgHiBlack).SprintFunc()(str) }, + 2: func(str string) string { return color.New(color.BgHiCyan).Add(color.FgHiBlack).SprintFunc()(str) }, + 3: func(str string) string { return color.New(color.BgHiGreen).Add(color.FgHiBlack).SprintFunc()(str) }, + 4: func(str string) string { return color.New(color.BgHiYellow).Add(color.FgHiBlack).SprintFunc()(str) }, + 5: func(str string) string { return color.New(color.BgHiRed).Add(color.FgHiBlack).SprintFunc()(str) }, } for i, _x := range x {