From 684fcbf3c92ec2ce3ab4c04cc981add4fd8bc4ca Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 20 Jun 2025 21:28:01 +0200 Subject: [PATCH] feat: added `just format` command --- justfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index ad237ea9..f5db7774 100644 --- a/justfile +++ b/justfile @@ -1,8 +1,8 @@ set export BUILD_NAME := "change_me" - -build: + +build: format cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules" run: build @@ -29,3 +29,6 @@ initialize-template projectname: sed "s/change_me/{{projectname}}/" ./justfile mv ./modules/PROJECT ./modules/{{projectname}} +format: + # Formatting Custom Modules + clang-format -i $(find modules/ -iname '*.h' -o -iname '*.c' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.hxx' -o -iname '*.cxx')