ohmyzsh
ohmyzsh copied to clipboard
feat: plugin for `terraform-docs`
If the feature request is for a plugin or theme, specify it here.
terraform-docs
If the feature solves a problem you have, specify it here.
It would be nice if there was a ohmyzsh plugin for terraform-docs that has the goal of keeping completions up to date; see terraform plugin here for an example.
Describe the proposed feature.
To keep completions up to date; namely, performing the behavior of terraform-docs completion zsh > ~/.oh-my-zsh/completions/_terraform-docs
Describe alternatives you've considered
The alternative is to use terraform-docs completion zsh > ~/.oh-my-zsh/completions/_terraform-docs, which works perfectly fine.
Additional context
I've included instructions upstream in a pull request (https://github.com/terraform-docs/terraform-docs/pull/741).
Related Issues
I've created an issue in terraform-docs (https://github.com/terraform-docs/terraform-docs/issues/742) linked to the pull request (https://github.com/terraform-docs/terraform-docs/pull/741).
We could use terraform plugin, and add the completions generation as well for terraform-docs.
That sounds great. Since terraform-docs is not an official HashiCorp project, I was suggesting to separate it into terraform-docs. I think either works great.