A version manager, and project manager for Amber, written in 100% Amber.
This project is under construction, and is not ready for regular use.
Please only open issues if you are actually willing to make a PR yourself.
Amethyst is a command-line tool for managing Amber projects and Amber versions.
Usage: amethyst <command> [options]
You can also execute an Amber script directly within an Amethyst project:
amethyst your-script.abBootstraps a new Amber project. It will prompt you for a project directory and create the necessary files and directory structure.
Usage:
amethyst initExample:
$ amethyst init
Project directory: my-amber-project
Successfully created project 'my-amber-project'
This creates a new directory my-amber-project with the following structure:
my-amber-project/
โโโ amethyst.ini
โโโ my-amber-project.ab (executable script)
โโโ .gitignore
โโโ lib/
Displays information about the current Amber project, such as the project root.
Usage:
amethyst infoBuilds the current project. This command reads the amethyst.ini file for the project's entry point and compiles it into an executable shell script in the target/ directory.
Usage:
amethyst buildGenerates the necessary shell commands to add Amethyst to your PATH. This is meant to be used with eval.
Usage:
source <(amethyst env)Amethyst can manage multiple versions of the Amber compiler.
Lists installed and available Amber versions.
Usage:
amethyst amber list [options]Options:
--all,-a: List all available remote versions for installation.
Installs a specific version of Amber.
Usage:
amethyst amber install <version> [options]Arguments:
<version>: The version to install. You can uselatestto install the most recent version.
Options:
--force,-f: Force re-installation if the version is already installed.
Example:
amethyst amber install latestUninstalls a specific version of Amber.
Usage:
amethyst amber uninstall <version>Arguments:
<version>: The version to uninstall.
Sets the default Amber version to use globally.
Usage:
amethyst amber use <version>Arguments:
<version>: The installed version to use as the default.