Skip to content
/ cli Public

Command-line interface for the Mango programming language

License

Notifications You must be signed in to change notification settings

mangolang/cli

Repository files navigation

https://readthedocs.org/projects/mangolang/badge/?version=latest

Mango CLI

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.

https://mangocode.org/

Status

This project is still in early development stage. It is not ready to use, not even experimentally.

How to use

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.

Docker

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.

Self-compiled

Compiling and running the code should be easy.

  • Install Rust.

  • 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).

Links

About

Command-line interface for the Mango programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages