This is the command-line interface for Mango, a programming language to help you make large software projects reliable, for browsers and servers.
This tool is the main entrypoint for interacting with Mango, even though the actual code is largely divided over different repositories, like frontend, IR, to be compiled, to WebAssembly or interpreted.
This project is still in early development stage. It is not ready to use, not even experimentally.
There are two main ways to use the CLI [note: not finished], Docker and self-compiled. Because Mango is in early development, there are no pre-compiled binaries yet.
To use the Mango Docker image, you will need Docker installed.
We can then start Mango in a Docker container, mounting your code directory so it can be compiled:
docker run --rm -it --name mango --read-only --tmpfs /tmp --mount type=bind,src=/YOUR/CODE/PATH,dst=/code mangocode/mango:latest --help
Or a short version without name, auto-delete, read-only and version:
docker run -it -v"/YOUR/CODE/PATH":/code mangocode/mango --help
To build the Docker image locally, including running tests, run:
bash ci/all.sh
The image is now available as mangocode/mango.
Compiling and running the code should be easy.
Download and compile Mango:
cargo install mango
Run Mango at $HOME/.cargo/bin/mango --help.
If you want to access the executable more easily, either move mango to e.g. /usr/local/bin (for all users), or add $HOME/.cargo/bin to your PATH (just for you).