-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
69 lines (53 loc) · 1.15 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
60
61
62
63
64
65
66
67
68
69
@_default:
just --list
# Synchronize fossil repository
sync:
fossil update
# Build project
build:
cargo build
# Continuously build project
build--:
watchexec -e rs -- just build
# Run project
run:
cargo run
# Continuously run project
run--:
watchexec -e rs -- just run
# List all changes in repository
status:
fossil status --extra --changed --missing --deleted --added
# Show repository diff
diff path="":
fossil diff {{path}}
# Run tests
ntest name="":
cargo nextest run {{name}} --no-capture
# Continuously run tests
ntest-- name="":
watchexec -e rs -- just ntest {{name}}
# Run tests
test name="":
cargo test {{name}} -- --nocapture
# Continuously run tests
test-- name="":
watchexec -e rs -- just test {{name}}
# Show latest fossil change
show:
fossil timeline -n 1 --full -v
# Prepare project for publishing
prepare:
cargo +nightly fmt
# Show whether project needs to be prepared
[no-exit-message]
check:
cargo +nightly fmt --check
# Search Rust files
[no-exit-message]
rg term:
rg -trust "{{term}}"
# Search Rust files case insensitively
[no-exit-message]
rgi term:
rg -trust -i "{{term}}"