A MoonBit implementation of the just command runner
Dependencies
Current statusMoonJust is compatible with the pinned just 1.57.0 compatibility inventory on supported Native and wasm1/moonrun hosts. Completion remains excluded. Linux, macOS and Windows Native gates, the shared Ubuntu wasm1 asset, and the official non-completion differential harness pass. Release artifacts remain subject to a strict size baseline gate; publication, tagging and GitHub Release creation are not automatic.
| Area | Current capability |
|---|---|
| Language core | UTF-8 byte spans, diagnostics, lexer, parser, AST, formatter, semantic compilation |
| Loading | justfile discovery, explicit paths, stdin, imports, optional imports, modules and canonical graph identity |
| Evaluation | lazy scopes, recipe parameters, typed values, 83 builtins, explicit host effects, bounded hashing |
| Query CLI | check, format, init, list, show, summary, usage, groups, variables, evaluate, dump and JSON inspection |
| Filesystem | Native atomic transactions and policy-aware wasm1 transaction adapter |
| Environment | dotenv parsing/discovery, required/list/command modes, overrides, shell/tempdir and child-environment composition |
| Invocation | positional/variadic parameters, recipe-local options, flags, repetition, patterns and stable usage errors |
| Working directory | invocation, project, module, evaluation and recipe directory model with no-cd and recipe overrides |
| Executor | bounded jobs, parallel/serial dependency fences, scripts, cache, dry-run, deterministic output/failure and cancellation cleanup |
| Platform and terminal | real Native OS/architecture/TTY facts, async-owned process status mapping, deterministic color and Unicode display width |
| Interactive and Markdown | confirm/yes, chooser/editor workflows and automatic source-aware Markdown extraction |
| Wasm boundary | separate read-only inspect and process-enabled execution policies |
| Release engineering | validated Mooncakes source package, MoonX staging, cross-platform candidates, checksums, SBOM/provenance and upgrade rollback |
moon, moonc, and moonrun from the latest matching distributiongit config core.hooksPath .githooksmoon check --target all --warn-list +73
moon build --target native cmd/just
moon build --target wasm cmd/just
moon run --target native cmd/just -- --help
moon run --target native cmd/just -- --versionmoonrun --policy policies/inspect.toml \
_build/wasm/debug/build/cmd/just/just.wasm --helppython3 tools/runner.py run --mode releaseargv / stdin / cwd / explicit host facts
|
v
CLI composition and validation
|
v
loader -> source -> lexer -> parser -> semantic model
|
v
evaluator / invocation / query
|
v
working directory + environment configuration
|
v
platform-aware executor boundary| Path | Responsibility |
|---|---|
| api/ | stable public library facade and build metadata |
| src/source, src/diagnostic, src/path | target-independent source coordinates, diagnostics and lexical paths |
| src/lexer, src/parser, src/syntax, src/formatter | language front end and Markdown tangle |
| src/semantic, src/loader, src/evaluator, src/builtin | compilation, graph loading, evaluation and typed builtins |
| src/host, src/host_native, src/host_wasm | explicit host contracts and platform adapters |
| src/cli, src/application, src/invocation, src/workdir, src/environment | CLI, invocation, working-directory and environment models |
| cmd/just | Native/wasm1 executable composition root |
| compat/ | machine-readable compatibility inventories and area contracts |
| tests/upstream/ | pinned upstream corpus, ownership map and provenance |
| tools/ | organized checks, oracle builders, probes, and release tooling; see tools/README.md |
| docs/ | design plan, ADRs, historical delivery reports and release audit |
moon check --target all --warn-list +73
moon test --target native
moon test --target wasm
moon info
moon fmt
python3 tools/runner.py run --mode verifyInstall
Download zipA MoonBit implementation of the just command runner
Dependencies