https://github.com/pine/crystalbrew
:gem: [DEPRECATED] Crystal version manager.
https://github.com/pine/crystalbrew
Last synced: 7 months ago
JSON representation
:gem: [DEPRECATED] Crystal version manager.
- Host: GitHub
- URL: https://github.com/pine/crystalbrew
- Owner: pine
- License: mit
- Created: 2015-06-25T12:34:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-27T09:03:21.000Z (over 10 years ago)
- Last Synced: 2025-04-08T15:52:37.487Z (10 months ago)
- Language: Perl
- Homepage: https://github.com/pine613/crenv
- Size: 217 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
crystalbrew
-----------
[](https://travis-ci.org/pine613/crystalbrew)
[Crystal](http://crystal-lang.org/) version manager.
## Install
One liner curl install.
```
$ curl -L j.mp/crystalbrew | perl - setup
```
Or, download and setup.
```
$ wget j.mp/crystalbrew
$ perl crystalbrew setup
```
Add PATH setting your shell config file (.bashrc or .zshrc).
```
export PATH=$HOME/.crystalbrew/current/bin:$PATH
```
Reload config.
```
$ source ~/.bashrc
```
Confirm.
```
$ crystalbrew help
```
## Usage
Please see help.
```
$ crystalbrew --help
crystalbrew 0.1.0
Usage:
crystalbrew help Show this message
crystalbrew install Download and install a (binary file)
crystalbrew uninstall Uninstall a version
crystalbrew use Use
crystalbrew list List installed versions
crystalbrew ls Alias for `list`
crystalbrew ls-remote List remote versions
crystalbrew ls-all List remote and installed versions
crystalbrew alias Set alias to version
crystalbrew unalias Remove alias
crystalbrew clean | all Remove source file
crystalbrew selfupdate Update crystalbrew
crystalbrew exec -- Execute specified
Example:
# install from binary
crystalbrew install v0.7.4
```
## Development
Install module for testing.
```
$ carton install
```
Run test.
```
$ carton exec -- prove -lvr
```
If you installed [direnv](https://github.com/zimbatm/direnv), you could run `prove` without prefix.
## Acknowledgement
- [hokaccha](https://github.com/hokaccha)
crystalbrew is based [nodebrew](https://github.com/hokaccha/nodebrew). Thank you.
## Author
Pine Mizune