-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
51 lines (38 loc) · 911 Bytes
/
Copy pathjustfile
File metadata and controls
51 lines (38 loc) · 911 Bytes
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
_default:
just --list -u
alias r := ready
alias qc := quick-commit
alias rg := reset-git
# Installs the tools needed to develop
install-tools:
cargo install cargo-binstall
cargo binstall taplo-cli
# Upgrades the tools needed to develop
upgrade-tools:
cargo install cargo-binstall --force
cargo binstall taplo-cli
format:
cargo fmt
taplo format
lint:
cargo clippy --all-targets --all-features -- -D warnings
lint-fix:
cargo clippy --all-targets --all-features --fix --allow-dirty -- -D warnings
ready: format lint-fix
quick-commit:
just ready
git add -A
git commit -m "progress"
git push
clear-branches:
git branch --merged | egrep -v "(^\\*|main)" | xargs git branch -d
reset-git:
git checkout main
git pull
just clear-branches
# Serve documentation locally
docs:
uvx zensical serve
# Build documentation
docs-build:
uvx zensical build