update

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInBackground

func CheckInBackground()

CheckInBackground spawns a goroutine to fetch the latest version from GitHub and write it to the cache file. Non-blocking — if the command exits before the fetch completes, the cache is simply not updated.

Types

type UpdateInfo added in v1.6.0

type UpdateInfo struct {
	Current string
	Latest  string
}

UpdateInfo holds version comparison results for the caller to format.

func GetUpdateInfo added in v1.6.0

func GetUpdateInfo(currentVersion string) *UpdateInfo

GetUpdateInfo reads the cached latest version and returns update info if a newer version is available. Returns nil if no update is needed.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL