-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
59 lines (46 loc) · 1.71 KB
/
justfile
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
# Build using cargo
build:
cargo build
# Format code using rustfmt
format:
cargo +nightly fmt
# Install `clash` binary
install:
cargo install --path .
# Run tests
test:
cargo test
# Run painting tests
test-painting:
cargo test --quiet painting -- --nocapture --test-threads=1
# Print unformatted statement (requires coctus & jq)
raw-statement HANDLE='':
@coctus json {{HANDLE}} | jq -r .lastVersion.data.statement
raw-stub HANDLE='':
@coctus json {{HANDLE}} | jq -r .lastVersion.data.stubGenerator
# Check if clashes look good
check-all: check-outdated check-mono check-nested check-nested-self check-not-matching
# Check outdated formatting
check-outdated:
cargo run --quiet -- show 25623694f80d8f747b3fa474a33a9920335ce | less -R
cargo run --quiet -- show 7018d709bf39dcccec4ed9f97fb18105f64c | less -R
# Check Monospace
check-mono:
cargo run --quiet -- show 1783dda5b69105636695dc5bf51de1baf5d0 | less -R
cargo run --quiet -- show 1222536cec20519e1a630ecc8ada367dd708b | less -R
cargo run --quiet -- show 6357b99de3f556ffd3edff4a4d5995c924bb | less -R
cargo run --quiet -- show 4730251b4f27c2549cffc6fa48c40b7b85c8 | less -R
# Check tags nesting
check-nested:
cargo run --quiet -- show 750741cba87bb6a6ac8daf5adbe2aa083e24 | less -R
cargo run --quiet -- show 83316b323da5dba40730dbca5c72b46ccfc9 | less -R
# Check self nesting
check-nested-self:
cargo run --quiet -- show 70888dd5bb12f2becdad5e6db3de8b40a77f | less -R
# Check not matching tags
check-not-matching:
cargo run --quiet -- show 7040402a6fe461068f5cf5296607c184d043a | less -R
# Test the stub generator with a random clash in LANG
test-stub LANG:
cargo run next
cargo run generate-stub {{LANG}}