You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you installed crenv, you may installed Crystal as following.
$ crenv install 0.20.0 # install Crystal
$ crenv global 0.20.0 # set global Crystal version
$ crenv rehash
$ crystal --version
Crystal 0.20.0 (2016-11-22)
$ shards --version
Shards 0.7.0 (2016-11-22)
Usage
Please see help.
$ crenv help
Usage: crenv <command> [<args>]
Some useful crenv commands are:
commands List all available crenv commands
local Set or show the local application-specific Crystal version
global Set or show the global Crystal version
shell Set or show the shell-specific Crystal version
rehash Rehash crenv shims (run this after installing executables)
version Show the current Crystal version and its origin
versions List all Crystal versions available to crenv
which Display the full path to an executable
whence List all Crystal versions that contain the given executable
See `crenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/pine/crenv#readme
The crenv install command doesn't ship with crenv out of the box, but is provided by the crystal-build project.
# list all available versions:
$ crenv install -l
# install a Crystal version:
$ crenv install 0.20.0
# set global Crystal version:
$ crenv global 0.20.0
Updating crenv
Please execute following commands to update crenv.
$ cd ~/.crenv # or ~/.anyenv/envs/crenv
$ git pull origin master
$ cd plugins/crystal-build
$ git pull origin master
Development
The crenv source code is hosted on GitHub. It's clean, modular, and easy to understand, even if you're not a shell hacker.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.