build-configs(update)
This commit is contained in:
parent
62469837f2
commit
43449e59ee
2 changed files with 21 additions and 2 deletions
19
justfile
19
justfile
|
|
@ -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 }}
|
||||
|
|
|
|||
Reference in a new issue