chore: update cli version (#1287)

master
Kevin Wan 3 years ago committed by GitHub
parent 9d528dddd6
commit b6bda54870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ import (
) )
// BuildVersion is the version of goctl. // BuildVersion is the version of goctl.
const BuildVersion = "1.2.3-cli" const BuildVersion = "1.2.4-cli"
var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5} var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}
@ -24,7 +24,8 @@ func IsVersionGreaterThan(version, target string) bool {
return true return true
} else if versionNumber < targetVersionNumber { } else if versionNumber < targetVersionNumber {
return false return false
} else { // unchecked case, in normal, the goctl version does not contains suffix in release. } else {
// unchecked case, in normal, the goctl version does not contain suffix in release.
return tag[versionTag] > tag[targetTag] return tag[versionTag] > tag[targetTag]
} }
} }

Loading…
Cancel
Save