Skip to content

๐Ÿ”ฎ Amethyst - A version manager, and project manager for Amber.

Notifications You must be signed in to change notification settings

ArjixWasTaken/amethyst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

37 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”ฎ Amethyst

A version manager, and project manager for Amber, written in 100% Amber.

asciicast

๐Ÿšง Under Construction ๐Ÿšง

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.

Usage

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.ab

Commands

Project Management

init

Bootstraps a new Amber project. It will prompt you for a project directory and create the necessary files and directory structure.

Usage:

amethyst init

Example:

$ 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/

info

Displays information about the current Amber project, such as the project root.

Usage:

amethyst info

build

Builds 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 build

Environment

env

Generates the necessary shell commands to add Amethyst to your PATH. This is meant to be used with eval.

Usage:

source <(amethyst env)

Amber Version Management (amber)

Amethyst can manage multiple versions of the Amber compiler.

amber list

Lists installed and available Amber versions.

Usage:

amethyst amber list [options]

Options:

  • --all, -a: List all available remote versions for installation.

amber install

Installs a specific version of Amber.

Usage:

amethyst amber install <version> [options]

Arguments:

  • <version>: The version to install. You can use latest to install the most recent version.

Options:

  • --force, -f: Force re-installation if the version is already installed.

Example:

amethyst amber install latest

amber uninstall

Uninstalls a specific version of Amber.

Usage:

amethyst amber uninstall <version>

Arguments:

  • <version>: The version to uninstall.

amber use

Sets the default Amber version to use globally.

Usage:

amethyst amber use <version>

Arguments:

  • <version>: The installed version to use as the default.

About

๐Ÿ”ฎ Amethyst - A version manager, and project manager for Amber.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •