leetcode/justfile

20 lines
319 B
Makefile
Raw Normal View History

2024-08-24 11:52:03 +08:00
#!/usr/bin/env just --justfile
build:
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}}