update

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 10 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 IsNewer

func IsNewer(latestTag, currentVersion string) bool

func ShouldCheck

func ShouldCheck(currentVersion string) bool

func StripV

func StripV(v string) string

Types

type CheckResult

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

func CheckForUpdate

func CheckForUpdate(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