leetcode/justfile
2024-09-12 14:13:49 +08:00

23 lines
348 B
Makefile
Executable File

#!/usr/bin/env just --justfile
update:
git pull
build: update
cargo build --release
test:
cargo test
commit:
#!/usr/bin/env bash
set -euxo pipefail
time=$(date "+%Y%m%d")
message="$time finished."
git add -A
git commit -m "$message"
git push
pull id: build
./target/release/leetcode-rust {{id}}