Skip to content

Commit

Permalink
Display the latest version after an update in an easily recognizable …
Browse files Browse the repository at this point in the history
…color
  • Loading branch information
nao1215 committed Apr 16, 2022
1 parent 32ab4fb commit 59da0b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ All notable changes to this project will be documented in this file. The format

# [0.9.3] - 2022-04-16
## Changed
- Parallelized update process
- Simplified messages during the update process
- Improved error messages
- Parallelized update subcommand process
- Parallelized check subcommand process
- Simplified messages during the update/check process
- Display the latest version after an update in an easily recognizable color
- Improved error messages.
# [0.9.1] - 2022-03-19
## Changed
- Changed the message at the time of update was incorrect, so the message was corrected.
Expand Down
Binary file modified doc/img/sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions internal/goutil/goutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ func (p *Package) CurrentToLatestStr() string {
if IsAlreadyUpToDate(*p.Version) {
return "Already up-to-date: " + color.GreenString(p.Version.Latest)
}
return color.GreenString(p.Version.Current) + " to " + color.GreenString(p.Version.Latest)
return color.GreenString(p.Version.Current) + " to " + color.YellowString(p.Version.Latest)
}

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

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

0 comments on commit 59da0b4

Please sign in to comment.