Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTerBeke committed Feb 27, 2024
1 parent 29d53e5 commit 3d282e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/use/use.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,13 @@ func UseVersion(version string) {
}
}

// UseLatestVersion activates the latest Terraform version
func UseLatestVersion(preRelease bool) {
version := list.FindLatestVersion(preRelease)
UseVersion(version)
}

// UseRequiredVersion activates the required Terraform version from the .tf files in the current directory
func UseRequiredVersion() {
terraformFiles := helpers.FindTerraformFiles()
if len(terraformFiles) == 0 {
Expand Down

0 comments on commit 3d282e0

Please sign in to comment.