docs: update bat runtime documentation

This commit is contained in:
2026-07-12 23:04:26 +08:00
parent f7255f7c04
commit bd9f50c85c
14 changed files with 195 additions and 115 deletions
+4 -6
View File
@@ -110,7 +110,7 @@ git push origin feature/your-feature-name
cargo test -p bat-adapters -- --nocapture
cargo test -p bat-ffi -- --nocapture
cargo test -p bat-infrastructure -- --nocapture
cargo test -p bat-infrastructure --bin bat-official-sync -- --nocapture
cargo test -p bat-infrastructure --bin bat -- --nocapture
```
Go CLI 尚未实现时,`go test ./...` 可能没有产品级 package 可运行;Makefile 会在空 Go 阶段清晰跳过。
@@ -128,20 +128,18 @@ cargo test --workspace
查看参数:
```bash
cargo run -p bat-infrastructure --bin bat-official-sync -- --help
cargo run -p bat-infrastructure --bin bat -- --help
```
dry-run
```bash
cargo run -p bat-infrastructure --bin bat-official-sync -- \
cargo run -p bat-infrastructure --bin bat -- \
--auto-discover \
--platforms Windows,Android \
--output /tmp/ba-official-dev \
--dry-run
```
开发环境真实下载必须使用 `/tmp` 或其他隔离目录,不要写入现有资源目录。
开发环境真实下载默认写入 `./bat-resources`;如果要覆盖,必须使用 `/tmp` 或其他隔离目录,不要写入现有资源目录。
### 基准测试