autocomplete icon indicating copy to clipboard operation
autocomplete copied to clipboard

[terraform] var and var-file options do exist for apply command

Open Pranay-Narang opened this issue 3 years ago • 1 comments

Sanity checks

  • [X] My issue relates to a specific CLI completion spec (e.g. git checkout is missing options in git completion spec). If your issue is more general, please create your issue here: withfig/fig
  • [X] I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
  • [X] I would like to work on this.

What CLI tool does this relate to?

terraform

Which statement makes the most sense?

This completion spec isn't complete

Issue Details

The terraform apply command just like terraform plan supports the -var and -var-file commands but the autocomplete does not seem to work with the same, is this the intended behaviour? If not, I am happy to work on fixing this issue

Screenshots: image

image

Pranay-Narang avatar Jun 09 '23 12:06 Pranay-Narang

Looks like there is nothing but globalOptions specified for the apply command https://github.com/withfig/autocomplete/blob/master/src/terraform.ts#L197

I believe it's a small change to add the extra options, please correct me if I am wrong

Pranay-Narang avatar Jun 09 '23 12:06 Pranay-Narang