Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pine/crystalbrew

:gem: [DEPRECATED] Crystal version manager.
https://github.com/pine/crystalbrew

Last synced: 26 days ago
JSON representation

:gem: [DEPRECATED] Crystal version manager.

Awesome Lists containing this project

README

        

crystalbrew
-----------

[![Build Status](https://travis-ci.org/pine613/crystalbrew.svg?branch=master)](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