From 886bc77e15ff921d2ce7ed83de491aad39596e9d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 30 Sep 2015 16:42:31 -0700 Subject: [PATCH] Change update coloring to Cyan as its more brighter on windows cmd :-) --- notifier.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifier.go b/notifier.go index 1c351abf..d17f65c6 100644 --- a/notifier.go +++ b/notifier.go @@ -30,7 +30,7 @@ import ( // colorizeUpdateMessage - inspired from Yeoman project npm package https://github.com/yeoman/update-notifier func colorizeUpdateMessage(updateString string) (string, *probe.Error) { // initialize coloring - blue := color.New(color.FgBlue, color.Bold).SprintFunc() + cyan := color.New(color.FgCyan, color.Bold).SprintFunc() yellow := color.New(color.FgYellow, color.Bold).SprintfFunc() // calculate length without color coding, due to ANSI color characters padded to actual @@ -42,7 +42,7 @@ func colorizeUpdateMessage(updateString string) (string, *probe.Error) { // populate lines with color coding line1InColor := line1Str - line2InColor := fmt.Sprintf(" Run \"%s\" to update. ", blue(updateString)) + line2InColor := fmt.Sprintf(" Run \"%s\" to update. ", cyan(updateString)) // calculate the rectangular box size maxContentWidth := int(math.Max(float64(line1Length), float64(line2Length)))