Download and install binary files from GitHub Releases.
For Mac/Linux users, you can use Homebrew to install it:
brew install egoist/tap/bget
# Feel free to change the -b flag to use another directory curl -fsSL https://install.egoist.sh/bget.sh | bash \ -s -- -b /usr/local/bin
Or just grab the latest release from GitHub Releases.
bget owner/repo [-b bin_name] [-d install_dir] # Download from a specific release bget owner/repo#v1.2.3
bin_namedefaults to the name of the GitHub repo.
It will look for executable files (as well as compressed files) in the release assets, if it's a compressed file we simply use the largest file inside it.
bget owner/repo --token GITHUB_TOKEN # Or using environment variable env GITHUB_TOKEN=xxx bget owner/repo
Build for release:
go build -o bget ./cmd
go run ./cmd