We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba0a441 commit aaad263Copy full SHA for aaad263
main.go
@@ -33,10 +33,14 @@ func main() {
33
34
newRelease := <-updateMessageChan
35
if newRelease != nil {
36
- msg := fmt.Sprintf(`A new release of gh is available: %s → %s
37
-Release notes: %s`, currentVersion, newRelease.Version, newRelease.URL)
+ msg := fmt.Sprintf("%s %s → %s\n%s",
+ ansi.Color("A new release of gh is available:", "yellow"),
38
+ ansi.Color(currentVersion, "cyan"),
39
+ ansi.Color(newRelease.Version, "cyan"),
40
+ ansi.Color(newRelease.URL, "yellow"))
41
+
42
stderr := utils.NewColorable(os.Stderr)
- fmt.Fprintf(stderr, "\n\n%s\n\n", ansi.Color(msg, "cyan"))
43
+ fmt.Fprintf(stderr, "\n\n%s\n\n", msg)
44
}
45
46
0 commit comments