mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
feat: Add support for specify terraform-docs config file (#244)
This commit is contained in:
parent
e6aad17310
commit
25cddd9880
1 changed files with 2 additions and 0 deletions
|
|
@ -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[@]}"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue