git-hooks.nix
git-hooks.nix copied to clipboard
Change `terraform-format` to support both Terraform and OpenTofu packages
Right now, the terraform-fmt
hook uses OpenTofu under the hood, which is a little misleading given the hook name. On the other hand, the use of OpenTofu over Terraform may be something to leave to the end user to decide. ~~In that regard, I suggest creating two separate hooks, one that uses Terraform and another that uses OpenTofu.~~