From 994653c507cd67a160b066e1552e6f6b5df25ec0 Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Wed, 19 Aug 2020 06:06:55 -0400 Subject: [PATCH] docs: Update terraform-docs link pointing to new organization (#130) --- README.md | 6 +++--- terraform_docs.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e87f94785..78f995158 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ ### 1. Install dependencies * [`pre-commit`](https://pre-commit.com/#install) -* [`terraform-docs`](https://github.com/segmentio/terraform-docs) required for `terraform_docs` hooks. `GNU awk` is required if using `terraform-docs` older than 0.8.0 with Terraform 0.12. +* [`terraform-docs`](https://github.com/terraform-docs/terraform-docs) required for `terraform_docs` hooks. `GNU awk` is required if using `terraform-docs` older than 0.8.0 with Terraform 0.12. * [`TFLint`](https://github.com/terraform-linters/tflint) required for `terraform_tflint` hook. * [`TFSec`](https://github.com/liamg/tfsec) required for `terraform_tfsec` hook. * [`coreutils`](https://formulae.brew.sh/formula/coreutils) required for `terraform_validate` hook on macOS (due to use of `realpath`). @@ -24,7 +24,7 @@ brew install pre-commit gawk terraform-docs tflint tfsec coreutils ```bash sudo apt install python3-pip gawk &&\ pip3 install pre-commit -curl -L "$(curl -s https://api.github.com/repos/segmentio/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64")" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/ +curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64")" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/ curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/ env GO111MODULE=on go get -u github.com/liamg/tfsec/cmd/tfsec ``` @@ -81,7 +81,7 @@ Check the [source file](https://github.com/antonbabenko/pre-commit-terraform/blo ## Notes about terraform_docs hooks -1. `terraform_docs` and `terraform_docs_without_aggregate_type_defaults` will insert/update documentation generated by [terraform-docs](https://github.com/segmentio/terraform-docs) framed by markers: +1. `terraform_docs` and `terraform_docs_without_aggregate_type_defaults` will insert/update documentation generated by [terraform-docs](https://github.com/terraform-docs/terraform-docs) framed by markers: ```txt diff --git a/terraform_docs.sh b/terraform_docs.sh index ebb8c4e46..8e7393329 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -127,8 +127,8 @@ terraform_docs_awk() { cat << "EOF" > "$output_file" # This script converts Terraform 0.12 variables/outputs to something suitable for `terraform-docs` # As of terraform-docs v0.6.0, HCL2 is not supported. This script is a *dirty hack* to get around it. -# https://github.com/segmentio/terraform-docs/ -# https://github.com/segmentio/terraform-docs/issues/62 +# https://github.com/terraform-docs/terraform-docs/ +# https://github.com/terraform-docs/terraform-docs/issues/62 # Script was originally found here: https://github.com/cloudposse/build-harness/blob/master/bin/terraform-docs.awk { if ( $0 ~ /\{/ ) {