Skip to content

Commit

Permalink
docs(moon): update command line help
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunchen committed Dec 16, 2024
1 parent 50afe8c commit 15c7e10
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion next/toolchain/moon/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ Build the current package
* `--output-wat` — Output WAT instead of WASM
* `-d`, `--deny-warn` — Treat all warnings as errors
* `--no-render` — Don't render diagnostics from moonc (don't pass '-error-format json' to moonc)
* `--warn-list <WARN_LIST>` — Warn list config
* `--alert-list <ALERT_LIST>` — Alert list config
* `--frozen` — Do not sync dependencies, assuming local dependencies are up-to-date
* `-w`, `--watch` — Monitor the file system and automatically build artifacts

Expand Down Expand Up @@ -139,6 +141,8 @@ Check the current package, but don't build object files
* `--output-wat` — Output WAT instead of WASM
* `-d`, `--deny-warn` — Treat all warnings as errors
* `--no-render` — Don't render diagnostics from moonc (don't pass '-error-format json' to moonc)
* `--warn-list <WARN_LIST>` — Warn list config
* `--alert-list <ALERT_LIST>` — Alert list config
* `--output-json` — Output in json format
* `--frozen` — Do not sync dependencies, assuming local dependencies are up-to-date
* `-w`, `--watch` — Monitor the file system and automatically check files
Expand Down Expand Up @@ -174,6 +178,8 @@ Run a main package
* `--output-wat` — Output WAT instead of WASM
* `-d`, `--deny-warn` — Treat all warnings as errors
* `--no-render` — Don't render diagnostics from moonc (don't pass '-error-format json' to moonc)
* `--warn-list <WARN_LIST>` — Warn list config
* `--alert-list <ALERT_LIST>` — Alert list config
* `--frozen` — Do not sync dependencies, assuming local dependencies are up-to-date
* `--build-only` — Only build, do not run the code

Expand Down Expand Up @@ -201,6 +207,8 @@ Test the current package
* `--output-wat` — Output WAT instead of WASM
* `-d`, `--deny-warn` — Treat all warnings as errors
* `--no-render` — Don't render diagnostics from moonc (don't pass '-error-format json' to moonc)
* `--warn-list <WARN_LIST>` — Warn list config
* `--alert-list <ALERT_LIST>` — Alert list config
* `-p`, `--package <PACKAGE>` — Run test in the specified package
* `-f`, `--file <FILE>` — Run test in the specified file. Only valid when `--package` is also specified
* `-i`, `--index <INDEX>` — Run only the index-th test in the file. Only valid when `--file` is also specified
Expand Down Expand Up @@ -282,12 +290,16 @@ Generate public interface (`.mbti`) files for all packages in the module

Add a dependency

**Usage:** `moon add <PACKAGE_PATH>`
**Usage:** `moon add [OPTIONS] <PACKAGE_PATH>`

**Arguments:**

* `<PACKAGE_PATH>` — The package path to add

**Options:**

* `--bin` — Whether to add the dependency as a binary



## `moon remove`
Expand Down

0 comments on commit 15c7e10

Please sign in to comment.