leetcode/justfile

23 lines
348 B
Makefile
Raw Normal View History

2024-08-24 11:52:03 +08:00
#!/usr/bin/env just --justfile
2024-09-12 14:13:49 +08:00
update:
git pull
build: update
2024-08-24 11:52:03 +08:00
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}}