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

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

Open
3 tasks done
Pranay-Narang opened this issue Jun 9, 2023 · 1 comment
Open
3 tasks done

Comments

@Pranay-Narang
Copy link

Sanity checks

  • 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
  • I have searched github.com/withfig/autocomplete/issues and there are no duplicates of my issue
  • 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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant