Skip to content

Commit 59da0b4

Browse files
committed
Display the latest version after an update in an easily recognizable color
1 parent 32ab4fb commit 59da0b4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Changelog.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ All notable changes to this project will be documented in this file. The format
33

44
# [0.9.3] - 2022-04-16
55
## Changed
6-
- Parallelized update process
7-
- Simplified messages during the update process
8-
- Improved error messages
6+
- Parallelized update subcommand process
7+
- Parallelized check subcommand process
8+
- Simplified messages during the update/check process
9+
- Display the latest version after an update in an easily recognizable color
10+
- Improved error messages.
911
# [0.9.1] - 2022-03-19
1012
## Changed
1113
- Changed the message at the time of update was incorrect, so the message was corrected.

doc/img/sample.png

45.5 KB
Loading

internal/goutil/goutil.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ func (p *Package) CurrentToLatestStr() string {
6767
if IsAlreadyUpToDate(*p.Version) {
6868
return "Already up-to-date: " + color.GreenString(p.Version.Latest)
6969
}
70-
return color.GreenString(p.Version.Current) + " to " + color.GreenString(p.Version.Latest)
70+
return color.GreenString(p.Version.Current) + " to " + color.YellowString(p.Version.Latest)
7171
}
7272

7373
// VersionCheckResultStr returns string about command version check.
7474
func (p *Package) VersionCheckResultStr() string {
7575
if IsAlreadyUpToDate(*p.Version) {
7676
return "Already up-to-date: " + color.GreenString(p.Version.Latest)
7777
}
78-
return "current: " + color.GreenString(p.Version.Current) + ", latest: " + color.GreenString(p.Version.Latest)
78+
return "current: " + color.GreenString(p.Version.Current) + ", latest: " + color.YellowString(p.Version.Latest)
7979
}
8080

8181
// IsAlreadyUpToDate return whether binary is already up to date or not.

0 commit comments

Comments
 (0)