Skip to content

Commit 9857092

Browse files
committed
Adding Justfile
1 parent 5d2d5a8 commit 9857092

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Justfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
_default:
2+
@just --choose
3+
4+
# Shows a list of all available recipes
5+
help:
6+
@just --list
7+
8+
green := '\033[0;32m'
9+
red := '\033[0;31m'
10+
reset := '\033[0m'
11+
12+
# Checks if all requirements to work on this project are installed
13+
check-requiements:
14+
@command -v cargo &>/dev/null && echo -e "{{ green }}{{ reset}} cargo installed" || echo -e "{{ red }}{{ reset }} cargo missing"
15+
16+
# Runs the same linters as the pipeline with fix option
17+
lint:
18+
cargo fmt --all # Is in fix mode by default
19+
cargo clippy --all --all-targets --allow-dirty --fix
20+
21+
# Runs the same test as the pipeline but locally
22+
test:
23+
cargo test --all
24+

0 commit comments

Comments
 (0)