Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "" Date = "" )
Build info set at build time via ldflags Example: go build -ldflags "-X github.com/porteden/cli/internal/config.Version=1.2.0"
Functions ¶
func FullVersion ¶
func FullVersion() string
FullVersion returns version string with commit and date if available
func SemverVersion ¶ added in v0.5.0
func SemverVersion() string
SemverVersion returns Version without a leading "v". goreleaser injects the v-prefixed git tag (e.g. "v0.2.0") while the GitHub release lookup reports the stripped form ("0.2.0"); comparing the two raw strings would never match, so the update banner and `porteden update`'s up-to-date check both use this.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.