update

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdates

func CheckForUpdates(currentVersion, repository string, verbose bool) (bool, string, error)

CheckForUpdates checks if there's a new version available

func ShouldCheckForUpdate

func ShouldCheckForUpdate() bool

ShouldCheckForUpdate determines if it's time to check for updates

func UpdateCheckTime

func UpdateCheckTime()

UpdateCheckTime updates the next check time

Types

type GitHubRelease

type GitHubRelease struct {
	TagName    string `json:"tag_name"`
	Name       string `json:"name"`
	Body       string `json:"body"`
	Draft      bool   `json:"draft"`
	Prerelease bool   `json:"prerelease"`
	Assets     []struct {
		Name               string `json:"name"`
		BrowserDownloadURL string `json:"browser_download_url"`
		Size               int64  `json:"size"`
	} `json:"assets"`
	PublishedAt time.Time `json:"published_at"`
}

GitHubRelease represents a GitHub release

func GetLatestRelease

func GetLatestRelease(repository string, includePrerelease bool, verbose bool) (*GitHubRelease, error)

GetLatestRelease fetches the latest release from GitHub If includePrerelease is true, it will return the latest release including prereleases

Jump to

Keyboard shortcuts

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