build-configs(update)

This commit is contained in:
Oliver Davies 2023-08-26 23:45:52 +01:00
parent 62469837f2
commit 43449e59ee
2 changed files with 21 additions and 2 deletions

View file

@ -33,6 +33,25 @@ install *args:
# Enable or disable Git hooks
git-hooks command:
#!/usr/bin/env bash
set -euo pipefail
case "{{ command }}" in
"on")
echo "Enabling Git hooks..."
git config core.hooksPath .githooks
;;
"off")
echo "Disabling Git hooks..."
git config --unset core.hooksPath
;;
*)
echo "Error: Invalid argument. Must be either 'on' or 'off'"
;;
esac
_exec +args:
docker compose exec -T {{ args }}