-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
: Check abillity to use native terraform-docs
config as replacement for custom --hook-config=
#382
Comments
Me too 😂
...which would mean we need to ship |
I'm using the following hook configuration and everything related to terraform-doc is managed by the config files. It works like a charm but all the hook-config args (which are necessary to have it work) are totally useless as the same info is already present in the config file.
|
As an aside, I think the greatest driver towards my use of a config file instead of cmd line arguments was the ability to fully customize the generated content. I can re-order the standard sections, add static text wherever I want, insert other files' contents, and (best of all) I am adding an auto-generated code block that users will be able to copy/paste into their projects to consume the terraform module for ease-of-use. That code block will be automagically updated for any terraform file changes instead of having to manually maintain the doc! (I'm going to be building sooo many modules and don't want to maintain that 😄 ) |
@drAlberT @UkklyDukkling can you please point how you were able to replicate - --hook-config=--create-file-if-not-exist=true in your And if you have idea how make just in case,
Which means that next settings, not more needed - --hook-config=--path-to-file=
- --hook-config=--use-standard-markers= And now we need to figure-out how to deal with - --hook-config=--add-to-existing-file=true # Boolean. true or false
- --hook-config=--create-file-if-not-exist=true # Boolean. true or false |
TL;DR: So we still need
|
In #380 I discovered that
terraform-docs
now have a big config, that, theoretically, can be used as a replacement for all or part of custom--hook-config=
'sNeed to investigate that option, hope we can remove part of the custom logic.
The text was updated successfully, but these errors were encountered: