Skip to content

Commit

Permalink
📝 Updated documentation instead of code
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony.freyermuth committed Jun 16, 2022
1 parent 6c622c5 commit 585ed97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions lib/list_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ func GetTFLatestImplicit(mirrorURL string, preRelease bool, version string) (str
}
}
} else if preRelease == false {
if strings.Count(version, string(".")) == 1 {
version += ".0"
}
listAll := false
tflist, _ := GetTFList(mirrorURL, listAll) //get list of versions
version = fmt.Sprintf("~> %v", version)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
listAllFlag := getopt.BoolLong("list-all", 'l', "List all versions of terraform - including beta and rc")
latestPre := getopt.StringLong("latest-pre", 'p', defaultLatest, "Latest pre-release implicit version. Ex: tfswitch --latest-pre 0.13 downloads 0.13.0-rc1 (latest)")
showLatestPre := getopt.StringLong("show-latest-pre", 'P', defaultLatest, "Show latest pre-release implicit version. Ex: tfswitch --show-latest-pre 0.13 prints 0.13.0-rc1 (latest)")
latestStable := getopt.StringLong("latest-stable", 's', defaultLatest, "Latest implicit version. Ex: tfswitch --latest-stable 0.13 downloads 0.13.7 (latest)")
latestStable := getopt.StringLong("latest-stable", 's', defaultLatest, "Latest implicit version based on a constraint. Ex: tfswitch --latest-stable 0.13.0 downloads 0.13.7 and 0.13 downloads 0.15.5 (latest)")
showLatestStable := getopt.StringLong("show-latest-stable", 'S', defaultLatest, "Show latest implicit version. Ex: tfswitch --show-latest-stable 0.13 prints 0.13.7 (latest)")
latestFlag := getopt.BoolLong("latest", 'u', "Get latest stable version")
showLatestFlag := getopt.BoolLong("show-latest", 'U', "Show latest stable version")
Expand Down

0 comments on commit 585ed97

Please sign in to comment.