- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CyanBold (0.06 sec)
-
cmd/update-notifier.go
line2Length := len(fmt.Sprintf(msgLine2Fmt, updateString)) // Populate lines with color coding. line1InColor := fmt.Sprintf(msgLine1Fmt, color.YellowBold(newerThan)) line2InColor := fmt.Sprintf(msgLine2Fmt, color.CyanBold(updateString)) // calculate the rectangular box size. maxContentWidth := max(line1Length, line2Length) // termWidth is set to a default one to use when we are // not able to calculate terminal width via OS syscalls
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 3.6K bytes - Viewed (0) -
internal/color/color.go
} return fmt.Sprintf }() GreenBold = func() func(a ...interface{}) string { if IsTerminal() { return color.New(color.FgGreen, color.Bold).SprintFunc() } return fmt.Sprint }() CyanBold = func() func(a ...interface{}) string { if IsTerminal() { return color.New(color.FgCyan, color.Bold).SprintFunc() } return fmt.Sprint }()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 01 17:57:52 UTC 2024 - 3.8K bytes - Viewed (0) -
cmd/update-notifier_test.go
for i, testCase := range testCases { output := prepareUpdateMessage(testCase.dlURL, testCase.older) line1 := fmt.Sprintf("%s %s", plainMsg, color.YellowBold(testCase.expectedSubStr)) line2 := fmt.Sprintf("Update: %s", color.CyanBold(testCase.dlURL)) // Uncomment below to see message appearance: // fmt.Println(output) switch { case testCase.dlURL == "" && output != "":
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 31 15:36:19 UTC 2023 - 4.1K bytes - Viewed (0)