summaryrefslogtreecommitdiffstats
path: root/client/go/cmd/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/cmd/config.go')
-rw-r--r--client/go/cmd/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/go/cmd/config.go b/client/go/cmd/config.go
index 1680e1d32b5..59739d1c342 100644
--- a/client/go/cmd/config.go
+++ b/client/go/cmd/config.go
@@ -15,6 +15,7 @@ import (
"strconv"
"strings"
+ "github.com/fatih/color"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/vespa-engine/vespa/client/go/auth0"
@@ -322,9 +323,10 @@ func (c *Config) Set(option, value string) error {
func printOption(cfg *Config, option string) {
value, ok := cfg.Get(option)
if !ok {
- value = color.Faint("<unset>").String()
+ faintColor := color.New(color.FgWhite, color.Faint)
+ value = faintColor.Sprint("<unset>")
} else {
- value = color.Cyan(value).String()
+ value = color.CyanString(value)
}
log.Printf("%s = %s", option, value)
}