hashicorp / terraform

Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
https://www.terraform.io
Other
42.76k stars 9.56k forks source link

Auto-completion forbids paths completion #31919

Open sylr opened 2 years ago

sylr commented 2 years ago

Terraform Version

Terraform v1.3.0
on darwin_arm64

Terraform Configuration Files

Irrelevant

Debug Output

Irrelevant

Expected Behavior

terraform fmt ..., terraform state push to allow file paths completion.

Actual Behavior

While using sub commands like fmt or state push which expect path(s) as arguments, auto-completion does not allow path completion which is super annoying.

Steps to Reproduce

terraform fmt main.<tab>

Additional Context

ZSH shell

References

No response

crw commented 2 years ago

Thanks for filing this bug report!