ohmyzsh icon indicating copy to clipboard operation
ohmyzsh copied to clipboard

feat: plugin for `terraform-docs`

Open darkandrew7 opened this issue 1 year ago • 2 comments

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).

darkandrew7 avatar Dec 29 '23 16:12 darkandrew7

We could use terraform plugin, and add the completions generation as well for terraform-docs.

carlosala avatar Dec 30 '23 11:12 carlosala

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.

darkandrew7 avatar Dec 30 '23 11:12 darkandrew7