Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 21, 2024
1 parent c41cde0 commit 145ea7a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Easily download and switch haxe versions (currently tested on
Run `install.sh` (`install.bat` on Windows) and update `PATH` / `HAXE_STD_PATH` as
requested.

Note for windows users: [how to set your PATH environment variable](https://www.computerhope.com/issues/ch000549.htm)

## Select a version

Run `hx` to display the haxe version switch (using a Haxe port of [`fzf`](https://github.com/junegunn/fzf)
Expand Down Expand Up @@ -71,6 +73,25 @@ Usage: `hx list-modules [compile.hxml]` (will default to `build.hxml`)
Note that those have been written when Haxe Manager was unix only and probably
can't work at all on Windows.

### Included `haxelib` version

If you need to run commands from `haxelib` nightlies, but you currently selected
Haxe version is bundling an older haxelib, you can access Haxe Manager's bundled
version of haxelib through `hxlib`:

Usage: `hxlib state load install.hxml` / `hxlib state save install.hxml`

### [lix](https://github.com/lix-pm/) related tooling

Switch to Haxe version specified in `.haxerc` with `hx rc`. Alternatively, one-off
operations can be done with `hx with rc [haxe compiler args]` without altering
currently selected Haxe version.

Install libraries as defined in lix's `haxe_libraries` folder: `hx lix-libs`

Alternatively, generate a `install.hxml` file (to be used with
`haxelib state load install.hxml`) by running `hx lix-to-install install.hxml`

### `++haxe`

Note if you're using Haxe >= 4.3.0: this is not useful anymore, since
Expand Down

0 comments on commit 145ea7a

Please sign in to comment.