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

[feature] better bash completion for -target and -options #35618

Open
Kamilcuk opened this issue Aug 20, 2024 · 1 comment
Open

[feature] better bash completion for -target and -options #35618

Kamilcuk opened this issue Aug 20, 2024 · 1 comment
Labels
enhancement new new issue not yet triaged

Comments

@Kamilcuk
Copy link

Terraform Version

Terraform v1.9.3

Use Cases

The use case is any command typed in the terminal.

Attempted Solutions

No solution has been found. The solution could be parsing terraform files myself and finding the answer.

Proposal

I propose to bash-complete the -option of terraform commang line tool:

$ terraform apply -auto-<TAB>
->
$ terraform apply -auto-approve

Additionally I propose to bash-complete the target names:

$ terraform apply -target=nomad_job.something<TAB>
nomad_job.something_a nomad_job.something_b
$ terraform apply -target=nomad_job.something

References

No response

@Kamilcuk Kamilcuk added enhancement new new issue not yet triaged labels Aug 20, 2024
@crw
Copy link
Collaborator

crw commented Aug 20, 2024

Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again!

(Note: may be related to #28788.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants