-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Expand file tree
/
Copy pathJustfile
More file actions
115 lines (87 loc) Β· 2.5 KB
/
Justfile
File metadata and controls
115 lines (87 loc) Β· 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Justfile - Convenient command runner for ZeroClaw development
# https://github.com/casey/just
# Default recipe to display help
_default:
@just --list
# Format all code
fmt:
cargo fmt --all
# Check formatting without making changes
fmt-check:
cargo fmt --all -- --check
# Run clippy lints
lint:
cargo clippy --all-targets -- -D warnings
# Run all tests
test:
cargo test --locked
# Run only unit tests (faster)
test-lib:
cargo test --lib
# Run the full CI quality gate locally
ci: fmt-check lint test
@echo "β
All CI checks passed!"
# Build in release mode
build:
cargo build --release --locked
# Build in debug mode
build-debug:
cargo build
# Clean build artifacts
clean:
cargo clean
# Run zeroclaw with example config (for development)
dev *ARGS:
cargo run -- {{ARGS}}
# Check code without building
check:
cargo check --all-targets
# Run cargo doc and open in browser
doc:
cargo doc --no-deps --open
# Serve the docs site locally (English by default; pass LOCALE=ja for Japanese)
docs LOCALE="en":
cargo mdbook serve --locale {{LOCALE}}
# Build the full docs site (all locales) to docs/book/book/
docs-build:
cargo mdbook build
# Regenerate reference/cli.md, reference/config.md, and rustdoc API reference
docs-refs:
cargo mdbook refs
# Sync .po files with English source; AI-fills delta if ANTHROPIC_API_KEY is set
docs-sync:
cargo mdbook sync
# Sync a single locale (e.g.: just docs-sync-locale ja)
docs-sync-locale LOCALE:
cargo mdbook sync --locale {{LOCALE}}
# Force-retranslate everything for a quality pass (costs more β use before a release)
# Optionally override model: FILL_MODEL=claude-opus-4-7 just docs-translate-force
docs-translate-force:
cargo mdbook sync --force
# Force-retranslate a single locale
docs-translate-force-locale LOCALE:
cargo mdbook sync --locale {{LOCALE}} --force
# Show translation status: translated/fuzzy/untranslated counts per locale
docs-translate-stats:
cargo mdbook stats
# Validate .po format for all locales (exits non-zero on format errors)
docs-translate-check:
cargo mdbook check
# Update dependencies
update:
cargo update
# Run cargo audit to check for security vulnerabilities
audit:
cargo audit
# Run cargo deny checks
deny:
cargo deny check
# Format TOML files (requires taplo)
fmt-toml:
taplo format
# Check TOML formatting (requires taplo)
fmt-toml-check:
taplo format --check
# Run all formatting tools
fmt-all: fmt fmt-toml
@echo "β
All formatting complete!"