feat: develop the basic functions.

This commit is contained in:
2025-06-13 16:53:25 +08:00
parent 9ddcad2f08
commit 52d9629a5c
9 changed files with 179 additions and 36 deletions

31
justfile Normal file
View File

@@ -0,0 +1,31 @@
#!/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 }}