Documentation
¶
Overview ¶
Package upgrade renders installation-aware Atmos update notices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
CompareVersions orders current against latest by semantic version, accepting a leading "v". It returns -1, 0, or 1; ok is false when either version is unparsable (for example, the development version "test"). A prerelease sorts before its release.
func NewerRelease ¶
NewerRelease returns latest without a leading "v" only when it is strictly newer than current. Equal, older, and unparsable versions never produce an update suggestion, so a newer build or prerelease is never told to "update" to an older release.
func PrintNotice ¶
PrintNotice displays upgrade guidance on the UI channel (stderr).
Types ¶
This section is empty.