Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Process modules in parallel when --recursive is supplied #842

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

Open
jakub-olczyk opened this issue Mar 17, 2025 · 0 comments
Open

Process modules in parallel when --recursive is supplied #842

jakub-olczyk opened this issue Mar 17, 2025 · 0 comments

Comments

@jakub-olczyk
Copy link

First of all thank you for creating such useful tool! I think this is a wild shot but I think I have a suggestion:

What problem are you facing?

Our pre-commit hook uses terraform-docs to generate documentation for all Terraform modules in the repository, the command used is

terraform-docs markdown --recursive --output-file README.md /src/terraform

This repository contains hundreds of modules, and the --recursive option causes a significant delay during each commit. We suspect the modules are processed sequentially, and we'd like to explore ways to improve performance.

How could terraform-docs help solve your problem?

It would be great if each module was processed in parallel even with a small-ish pool of worker threads / goroutines. I think this would greatly reduce the noticeable wait time for my use case.

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

No branches or pull requests

2 participants