autocomplete
autocomplete copied to clipboard
[terraform] var and var-file options do exist for apply command
Sanity checks
- [X] My issue relates to a specific CLI completion spec (e.g.
git checkoutis missing options ingitcompletion 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:
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