update

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallPowerShellURL

func InstallPowerShellURL() string

func InstallShellURL

func InstallShellURL() string

func InstallerEnv added in v1.3.7

func InstallerEnv(base []string) []string

func IsNewer

func IsNewer(latestTag, currentVersion string) bool

func IsTimeout added in v1.3.7

func IsTimeout(err error) bool

func ShouldCheck

func ShouldCheck(currentVersion string) bool

func StripV

func StripV(v string) string

func UpdateBaseURL added in v1.3.7

func UpdateBaseURL() string

Types

type CheckResult

type CheckResult struct {
	CurrentVersion  string
	LatestVersion   string
	LatestURL       string
	UpdateAvailable bool
}

func CheckForUpdate

func CheckForUpdate(currentVersion string) (*CheckResult, error)

func CheckForUpdateAuto added in v1.3.7

func CheckForUpdateAuto(currentVersion string) (*CheckResult, error)

func StateHasUpdate added in v1.0.2

func StateHasUpdate(currentVersion string) *CheckResult

type State

type State struct {
	CheckedAt     time.Time `yaml:"checked_at"`
	LatestVersion string    `yaml:"latest_version"`
	LatestURL     string    `yaml:"latest_url"`
}

Jump to

Keyboard shortcuts

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