Skip to content

Commit

Permalink
Add justfile to manage dev commands for turms-client-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Dec 30, 2024
1 parent 683c739 commit 9285136
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions turms-client-cpp/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
default:
just --list

set windows-shell := ["pwsh.exe", "-NoProfile", "-c"]

[windows]
install:
choco install -y llvm

[linux]
install:
sudo apt-get update
sudo apt-get install -y clang-format

[macos]
install:
brew install llvm

[windows]
lint:
Get-ChildItem -Path .\src, .\include -Recurse -Include *.cpp, *.h, *.c, *.hpp | ForEach-Object { clang-format -i $_.FullName }

[linux]
lint:
find ./src ./include -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.hpp' \) | xargs clang-format -i

[macos]
lint:
find ./src ./include -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.hpp' \) | xargs clang-format -i

0 comments on commit 9285136

Please sign in to comment.