forked from terraform-docs/terraform-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-hooks.yaml
31 lines (29 loc) · 969 Bytes
/
.pre-commit-hooks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
# Build and run the Go binary from the repo
# REQUIRES: Go v1.16+ installed
- id: terraform-docs-go
name: terraform-docs
description: Generate documentation for Terraform modules (via Go binary)
language: golang
entry: terraform-docs
pass_filenames: false
types: [terraform]
# Build and run `terraform-docs` assuming it was installed manually
# or via package manager
# REQUIRES: terraform-docs to be installed and on the $PATH
- id: terraform-docs-system
name: terraform-docs
description: Generate documentation for Terraform modules (via locally-installed CLI)
language: system
entry: terraform-docs
pass_filenames: false
types: [terraform]
# Builds and runs the Docker image from the repo
# REQUIRES: Docker installed
- id: terraform-docs-docker
name: terraform-docs
description: Generate documentation for Terraform modules (via Docker build)
language: docker
entry: terraform-docs
pass_filenames: false
types: [terraform]