From 3d76da3885e6a33d59527eff3a57d246dfb66620 Mon Sep 17 00:00:00 2001 From: MaxymVlasov Date: Thu, 14 Oct 2021 18:18:06 +0300 Subject: [PATCH] feat: Add support for specify terraform-docs config file Before it was be able only via absolute PATH, that is unusable --- terraform_docs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/terraform_docs.sh b/terraform_docs.sh index 1eb3c0526..f4335cd34 100755 --- a/terraform_docs.sh +++ b/terraform_docs.sh @@ -4,6 +4,8 @@ set -eo pipefail main() { initialize_ parse_cmdline_ "$@" + # Support for setting relative PATH to .terraform-docs.yml config. + ARGS=${ARGS/--config=/--config=$(pwd)\/} terraform_docs_ "${ARGS[*]}" "${FILES[@]}" }