An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
gup - Update binaries installed by "go install" with goroutines.
gup command update binaries installed by "go install" to the latest version. gup updates all binaries in parallel, so very fast. It also provides subcommands for manipulating binaries under $GOPATH/bin ($GOBIN).
gup is a cross-platform software that runs on Windows, Mac and Linux. gup exists in the go awesome list and many unit tests have been written!!
How to install
Use "go install"
If you does not have the golang development environment installed on your system, please install golang from the golang official website.
$ go install github.com/nao1215/gup@latest
Install from Package or Binary
The release page contains packages in .deb, .rpm, and .apk formats. gup command uses the go command internally, so the golang installation is required.
How to use
Update all binaries
If you update all binaries, you just run $ gup update
.
$ gup updategup:INFO : update binary under $GOPATH/bin or $GOBINgup:INFO : [ 1/30] github.com/cheat/cheat/cmd/cheat (Already up-to-date: v0.0.0-20211009161301-12ffa4cb5c87)gup:INFO : [ 2/30] fyne.io/fyne/v2/cmd/fyne_demo (Already up-to-date: v2.1.3)gup:INFO : [ 3/30] github.com/nao1215/gal/cmd/gal (v1.0.0 to v1.2.0)gup:INFO : [ 4/30] github.com/matsuyoshi30/germanium/cmd/germanium (Already up-to-date: v1.2.2)gup:INFO : [ 5/30] github.com/onsi/ginkgo/ginkgo (Already up-to-date: v1.16.5)gup:INFO : [ 6/30] github.com/git-chglog/git-chglog/cmd/git-chglog (Already up-to-date: v0.15.1) : :
Update the specified binary
If you want to update only the specified binaries, you specify multiple command names separated by space.
$ gup update subaru gup ubumegup:INFO : update binary under $GOPATH/bin or $GOBINgup:INFO : [1/3] github.com/nao1215/gup (v0.7.0 to v0.7.1)gup:INFO : [2/3] github.com/nao1215/subaru (Already up-to-date: v1.0.2)gup:INFO : [3/3] github.com/nao1215/ubume/cmd/ubume (Already up-to-date: v1.4.1)
Conclusion
If you use tools written in Golang, gup can be very helpful.
Original Link: https://dev.to/nchika/gup-update-binaries-installed-by-go-install-with-goroutines-3cfm
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To