Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l0go/haxeget
The easier way to install and manage Haxe compiler versions
https://github.com/l0go/haxeget
haxe rust version-manager
Last synced: 14 days ago
JSON representation
The easier way to install and manage Haxe compiler versions
- Host: GitHub
- URL: https://github.com/l0go/haxeget
- Owner: l0go
- License: mit
- Created: 2023-11-04T13:43:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-28T21:47:00.000Z (8 months ago)
- Last Synced: 2024-08-10T02:53:20.917Z (3 months ago)
- Topics: haxe, rust, version-manager
- Language: Rust
- Homepage:
- Size: 6.02 MB
- Stars: 16
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# haxeget
The *easier* way to install and manage Haxe compiler versions## Installation
On macOS and Linux, the easiest way to install is to use the meta-installer with this one command
```sh
curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/l0go/haxeget/main/meta-install.sh | bash
```On Windows and other platforms, you can download the executable from the [releases tab](https://github.com/l0go/haxeget/releases) and add it to your path.
## Usage
```sh
# Here is how we would install version 4.3.2 of the compiler
$ haxeget install 4.3.2
$ haxeget use 4.3.2
$ haxe # Can now run haxe and haxelib freely
```If needed, we can install another version and switch freely between them with the ``haxeget use `` command.
## Commands
| Command | About |
| ------- | ----- |
| Install | Installs the specified version of Haxe or Neko. ex: ``4.3.3``, ``neko``, ``nightly`` |
| Uninstall | Uninstalls the specified version |
| Use | Selects the version of Haxe to use |
| List | Lists the installed versions |
| Rc | Installs the version of Haxe specified in .haxerc |
| Update | Updates ``haxeget`` to the latest version |
| Current | Outputs the currently used Haxe version |## Why Rust?
I wanted to mess with the Rust programming language and this seemed like a decent opportunity. If I had proper hindsight, I would have written it in a better language like Go, Zig, or even godforbid Haxe itself. This gives us the interesting property of not forcing you to have a pre-existing Haxe compiler set up to install Haxe itself.## Alternatives
- [haxe-manager](https://github.com/kLabz/haxe-manager/): The original inspiration for this, still a valid option!
- [asdf-haxe](https://github.com/asdf-community/asdf-haxe): If I was aware that asdf had a Haxe plugin, I would probably just have used that. Writing my own is a lot more entertaining though!