Skip to content

Brickell-Research/caffeine_vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cvm - Caffeine Version Manager

A dead-simple version manager for the Caffeine programming language.

CI License: MIT

Install

brew install brickell-research/caffeine/cvm

Quick Start

cvm install latest      # Install the latest version
cvm use 4.6.0           # Switch to a specific version
caffeine --help         # Use it

Commands

Command Description
cvm install <version> Install a version (use latest for the most recent)
cvm use <version> Switch the active version
cvm list List installed versions
cvm list-remote List versions available to install
cvm uninstall <version> Remove an installed version
cvm current Show the active version
cvm which Show the path to the active binary
cvm help Show help

.caffeine-version

Running cvm install with no arguments reads the version from a .caffeine-version file in the current directory:

echo "4.6.0" > .caffeine-version
cvm install

How It Works

cvm downloads pre-built binaries from GitHub Releases into ~/.cvm/versions/<version>/. A symlink at ~/.cvm/current points to the active version. Your PATH includes ~/.cvm/current, so caffeine always resolves to the right binary. No shims, no shell functions, no magic.

License

MIT

About

Caffeine lang's version manager.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors