This is a project template for developing CLI application.
In addition to MoonBit toolchain, you will need:
- wasm-tools
- wasmtime
- (Optional) just
Execute just run
to see the output, and execute just build release
to get a release build under target/cli.wasm
.
- Modify the
top
function insrc/stub.mbt
to implement your CLI application. - Modify the
run
function if you need finer control on the event loop.