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

Add subcategory support to the generate command #203

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

remilapeyre
Copy link
Contributor

This patch adds a --subcategory flag that let users give a mapping that will use to set the subcategory field in the documentation:

tfplugindocs generate --subcategory consul_acl=ACL --subcategory consul_admin="Admin Partition"

The format for the flag is prefix="Sub Category" so all resources and datasources starting with consul_acl like consul_acl_policy, consul_acl_token, etc. will have the subcategory: "ACL" in the generated documentation. This is not very elegant but should work in most cases as needed.

Closes #156

This patch adds a --subcategory flag that let users give a mapping that
will use to set the `subcategory` field in the documentation:

	tfplugindocs generate --subcategory consul_acl=ACL --subcategory consul_admin="Admin Partition"

The format for the flag is `prefix="Sub Category"` so all resources and
datasources starting with `consul_acl` like `consul_acl_policy`,
`consul_acl_token`, etc. will have the `subcategory: "ACL"` in the
generated documentation. This is not very elegant but should work in most
cases as needed.

Closes hashicorp#156
@remilapeyre remilapeyre requested a review from a team as a code owner November 26, 2022 10:33
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

Successfully merging this pull request may close these issues.

Allow setting subcategory from code
1 participant