github.com/creativeprojects/go-selfupdate@v1.2.0/cmd/get-release/README.md (about)

     1  Download and install the latest release of any binary from GitHub.
     2  
     3  ## Installation
     4  
     5  ```
     6  $ go get -u github.com/creativeprojects/go-selfupdate/cmd/get-release
     7  ```
     8  
     9  ## Usage
    10  
    11  Usage is quite similar to `go get`.
    12  
    13  ```
    14  $ get-release {package}
    15  ```
    16  
    17  Please note that this command assumes that specified package is following Git tag naming rules and
    18  released binaries naming rules described in [README](../../README.md).
    19  
    20  For example, following command downloads and installs the released binary of [ghr](https://github.com/tcnksm/ghr)
    21  to `$GOPATH/bin`.
    22  
    23  ```
    24  $ get-release github.com/tcnksm/ghr
    25  Command was updated to the latest version 0.5.4: /Users/you/.go/bin/ghr
    26  
    27  $ ghr -version
    28  ghr version v0.5.4 (a12ff1c)
    29  ```
    30