Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netlify/binrc
Binrc is a command line application to manage different versions of binaries stored on GitHub releases.
https://github.com/netlify/binrc
Last synced: 3 months ago
JSON representation
Binrc is a command line application to manage different versions of binaries stored on GitHub releases.
- Host: GitHub
- URL: https://github.com/netlify/binrc
- Owner: netlify
- License: mit
- Created: 2017-03-20T16:59:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T22:57:51.000Z (about 1 year ago)
- Last Synced: 2024-06-27T09:42:19.096Z (5 months ago)
- Language: Makefile
- Homepage:
- Size: 60.5 KB
- Stars: 51
- Watchers: 17
- Forks: 10
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Binrc
Binrc is a command line application to manage different versions of binaries on GitHub releases.
Binrc doesn't try to be smart about version schemas and it only search for exact version matches.
Binrc is released under the [MIT License](LICENSE).
Please make sure you understand its [implications and guarantees](https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html).## Installation
You can download prebuilt binaries from the [releases](https://github.com/netlify/binrc/releases).
You can also install binrc to install binrc:
```
binrc install netlify/binrc 0.2.0
```Or you can download the cutting edge version with `go get`:
```
go get github.com/netlify/binrc
```## Usage
There is a main subcommand, `install`.
### install subcommand
The `install` subcommand Installs a new binary. If that version is not already in the host's
cache, Binrc will try to fetch it from GitHub's releases and keep it in its cache.```
binrc install spf13/hugo 0.19
```### Versions as environment variables
Binrc supports settings binary version numbers as environment variables. It will search for the binary name followed by `_VERSION`
in the environment to configure the right version.```
HUGO_VERSION=0.19 binrc install spf13/hugo
```### Aliases
Binrc keeps a list of aliases to make installing binaries more easy. If a project name is not in `OWNER/NAME` for, Binrc will
check the list of aliases to try to resolve the project.This is the current known list:
- hugo: spf13/hugo
- gutenberg: keats/gutenberg