cunymatthieu / tgenv

Terragrunt version manager
MIT License
223 stars 70 forks source link

Allow tgenv use to use .terragrunt-version #20

Open jlosito opened 3 years ago

jlosito commented 3 years ago

The command tfenv use will use whatever version has been defined in the .terraform-version as shown below.

% cat .terraform-version
0.12.20

% tfenv use
Switching default version to v0.12.20

I notice that the command tgenv use does not follow suit as shown below.

% cat .terragrunt-version
0.19.19

% tgenv use
tgenv: tgenv-use: [ERROR] usage: tgenv use <version>

I like the ability to just issue a tfenv use and the script pick up the local version file, install it if I don't have it, and then switch to it. Can this feature also be added to this project?

I'm currently using the version of tgenv shown below.

% tgenv --version
tgenv 0.1.0
weyderfs commented 1 year ago

@jlosito how was going?

So I have been trying to reborn this project in a new project and to solve your issue it was open this pull-request in my project.