no build [-o <file>] [-cc <s>] [-target <s>] [<file|dir>]
構建(輸出 executable)
no run [-cc <s>] [-target <s>] [<file|dir>]
構建並執行 main.no
no test [-cc <s>] [-target <s>] [<file|dir>]
執行測試
no add <pkg>
添加依賴
no remove <pkg>
移除依賴
no update <pkg>
更新依賴
no update-all
更新所有依賴
no list
列出依賴
no sync
同步依賴
no install [-u] [<pkg>@<version>]
安裝 binary(~/.nolang/bin/ + 軟鏈接)
no uninstall <name>
移除 binary 及軟鏈接
no pub --token <token> [--registry <url>]
發布至 registry
# 構建(默認 main.no 開始)
no build # 構建當前目錄
no build main.no # 構建指定文件
no build -o output # 指定輸出路徑
no build -cc zig # 使用 Zig 編譯器
no build -target x86_64-linux-gnu # 交叉編譯(指定目標平台)
# 運行(構建 + 執行)
no run # 構建並執行 main.no(必須有 main.no)
no run -cc zig
no run -target aarch64-macos-gnu
# 測試(構建 + 執行)
no test # 測試`test`目錄下所有 .no 文件
no test test/my-test.no # 執行單個測試文件
no test -cc zig
no test -target x86_64-windows-gnu