mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-08-31 22:17:25 +00:00
chore: add scripts for formatting via docker containers
This commit is contained in:
6
scripts/check-format-docker.sh
Executable file
6
scripts/check-format-docker.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Go to repository root
|
||||||
|
cd "$(dirname "$0")/.." || exit 2
|
||||||
|
|
||||||
|
docker run --rm -v ".:/code" --user "$(id -u):$(id -g)" silkeh/clang:17 /code/scripts/check-format.sh
|
6
scripts/reformat-all-docker.sh
Executable file
6
scripts/reformat-all-docker.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Go to repository root
|
||||||
|
cd "$(dirname "$0")/.." || exit 2
|
||||||
|
|
||||||
|
docker run --rm -v ".:/code" --user "$(id -u):$(id -g)" silkeh/clang:17 /code/scripts/reformat-all.sh
|
Reference in New Issue
Block a user