go-github-selfupdate/cmd/go-get-release
rhysd 82b1ad49fc add documents for go-get-release 2017-12-30 17:40:59 +09:00
..
README.md add documents for go-get-release 2017-12-30 17:40:59 +09:00
main.go implement a new helper CLI: go-get-release 2017-12-30 17:31:49 +09:00

README.md

Like go get, but it downloads and installs the latest release binary from GitHub instead.

Please install using go get.

$ go get -u github.com/rhysd/go-github-selfupdate/cmd/go-get-release

Usage is quite similar to go get. But {package} must be hosted on GitHub. So it needs to start with github.com/.

$ detect-latest-release {package}

Please note that this command assumes that specified package is following Git tag naming rules and released binaries naming rules described in README.

For example, following command downloads and installs the released binary of ghr to $GOPATH/bin.

$ go-get-release github.com/tcnksm/ghr
Command was updated to the latest version 0.5.4: /Users/you/.go/bin/ghr

$ ghr -version
ghr version v0.5.4 (a12ff1c)