Skip to content

Commit 25cddd9

Browse files
authored
feat: Add support for specify terraform-docs config file (antonbabenko#244)
1 parent e6aad17 commit 25cddd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

terraform_docs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -eo pipefail
44
main() {
55
initialize_
66
parse_cmdline_ "$@"
7+
# Support for setting relative PATH to .terraform-docs.yml config.
8+
ARGS=${ARGS/--config=/--config=$(pwd)\/}
79
terraform_docs_ "${ARGS[*]}" "${FILES[@]}"
810
}
911

0 commit comments

Comments
 (0)