Documentation
¶
Index ¶
- Variables
- func CheckForUpdate(currentVersion string) (string, bool)
- func Format(ver string) string
- func FormatUpdateNudge(latestVersion string, installation selfupdate.Installation) string
- func HasUpdate(currentVersion, latestVersion string) bool
- func IsReleaseVersion(v string) bool
- func LatestReleaseVersion() (string, error)
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "DEV"
Functions ¶
func CheckForUpdate ¶ added in v3.31.1
CheckForUpdate checks GitHub for the latest release and returns the latest version string and whether it is newer than currentVersion. Returns ("", false) silently on any error or if no update is available.
func FormatUpdateNudge ¶ added in v3.31.1
func FormatUpdateNudge(latestVersion string, installation selfupdate.Installation) string
FormatUpdateNudge returns the nudge message for display.
func HasUpdate ¶ added in v3.47.0
HasUpdate returns true if latestVersion is strictly newer than currentVersion.
func IsReleaseVersion ¶ added in v3.47.0
IsReleaseVersion reports whether v is a plain major.minor.patch release.
func LatestReleaseVersion ¶ added in v3.47.0
LatestReleaseVersion returns the latest released bk version from GitHub.
Types ¶
type VersionCmd ¶
type VersionCmd struct{}
func (*VersionCmd) Run ¶
func (c *VersionCmd) Run() error
Click to show internal directories.
Click to hide internal directories.