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