#!/usr/bin/env just --justfile update: git pull build: update #!/usr/bin/env bash set -euxo pipefail mkdir -p cmake-build-debug-clang cd cmake-build-debug-clang cmake .. -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ninja fmt: clang-format -i src/problems/*.cpp test: fmt build ./cmake-build-debug-clang/src/problem-tests commit: test #!/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 ./cmake-build-debug-clang/leetcode-fetcher {{ id }}