mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +00:00
Oliver Davies
af24a4b4fa
Add terraform as a project type, make the language optional, and add a .gitignore and justfile template for Terraform repositories.
26 lines
478 B
Twig
26 lines
478 B
Twig
# {{ managedText|raw }}
|
|
|
|
default:
|
|
@just --list
|
|
|
|
# Enable or disable Git hooks
|
|
git-hooks command:
|
|
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
case "{{ '{{ command }}'|raw }}" 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
|
|
|
|
# vim: ft=just
|