feat: Add support for specify terraform-docs config file (#244)

This commit is contained in:
Maksym Vlasov 2021-10-15 15:19:41 +03:00 committed by GitHub
commit 25cddd9880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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[@]}"
}