tfutils / tfenv

Terraform version manager
MIT License
4.43k stars 450 forks source link

tfenv shortcut for quickly switching to the last used version #378

Open tobamaestro opened 1 year ago

tobamaestro commented 1 year ago

Hey, I'm using the tfenv tool and I love it!

However, as I'm often switching between modules/projects which use different versions of Terraform, I'd like if I could do it quickly. So I thought of the idea of how nice would it be to be able to do it in a way one can switch directories with the cd command, since it's intuitive for the folks that are handy in CLI env.

So something like

tfenv -

or

tfenv use -

is what I had in mind. What do you think about this idea?

I'd be happy to volunteer and implement it.