forked from exercism/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
30 lines (24 loc) · 845 Bytes
/
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
_default:
just --list --unsorted
# configlet wrapper, uses pinned problem-specifications commit
@configlet *args="":
./bin/configlet_wrapper.sh {{ args }}
# update the pinned commit hash
update-problem-specs:
./bin/update_problem_specifications.sh
# generate a new uuid straight to your clipboard
uuid:
just configlet uuid | tr -d '[:space:]' | wl-copy
# simulate CI locally (WIP)
test:
just configlet lint
./bin/lint_markdown.sh
shellcheck bin/*.sh
./bin/check_exercises.sh
CLIPPY=true ./bin/check_exercises.sh
cd rust-tooling && cargo test
./bin/format_exercises.sh ; git diff --exit-code
add-exercise *args="":
cd rust-tooling/generate; cargo run --quiet --release -- add {{ args }}
update-exercise *args="":
cd rust-tooling/generate; cargo run --quiet --release -- update {{ args }}