Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform_docs_replace does not work in root directory #29

Closed
antonbabenko opened this issue Dec 14, 2018 · 1 comment
Closed

terraform_docs_replace does not work in root directory #29

antonbabenko opened this issue Dec 14, 2018 · 1 comment

Comments

@antonbabenko
Copy link
Owner

.pre-commit-config.yaml:

repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
  rev: v1.8.0
  hooks:
    - id: terraform_fmt
    - id: terraform_docs_replace
      args: ['--with-aggregate-type-defaults', '--sort-inputs-by-required']

There are *.tf and *.tfvars files in root and in directories.

README.md in directories is correct, but README.md in the root dir has this content:

Usage:
    terraform-docs [--no-required] [--no-sort | --sort-inputs-by-required] [--with-aggregate-type-defaults] [json | markdown | md] <path>...

PS: @RothAndrew could you please take a look and fix this.

@RothAndrew
Copy link
Contributor

Yep. I'm on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants