From 4f2c5ab58cf4e92545740b48cde6a021ff7ef554 Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Wed, 4 Jun 2025 09:30:46 +0200 Subject: [PATCH] feat(build): add update-submodule command to manage git submodules --- README.md | 10 ++++++++++ bin/update-submodule | 4 ++++ 2 files changed, 14 insertions(+) create mode 100755 bin/update-submodule diff --git a/README.md b/README.md index 4887c49..646547f 100644 --- a/README.md +++ b/README.md @@ -711,4 +711,14 @@ In your task file you can import these functions from the taskfile library. # Import commands [ -f ~/taskfile.build/bin/load-env ] && source ~/taskfile.build/bin/load-env +``` + +### update-submodule + +```bash + printf "$COLUMN" "update-submodule" "" "Update git submodules." + +# Import commands + +[ -f ~/taskfile.build/bin/update-submodule ] && source ~/taskfile.build/bin/update-submodule ``` \ No newline at end of file diff --git a/bin/update-submodule b/bin/update-submodule new file mode 100755 index 0000000..0707248 --- /dev/null +++ b/bin/update-submodule @@ -0,0 +1,4 @@ +function submodule() { + echo "Update git submodules." + git submodule update --init --recursive --checkout --depth=1 +} \ No newline at end of file