Help us shape the future of Go! Take the 2026 Go Developer Survey

update

package
v1.5.27 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 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, binPath string) []string

InstallerEnv returns base with the installer's MIRROR_URL, FLASHDUTY_INSTALL_DIR and INSTALLED_NAME pointed at the update source and at binPath, the running binary, so the installer replaces that binary in place instead of installing a default-named copy elsewhere.

func IsManagedByRunner added in v1.3.26

func IsManagedByRunner() bool

IsManagedByRunner reports whether flashduty-runner owns this CLI binary. The marker is intentionally exact so a user environment cannot accidentally disable standalone CLI updates with a truthy-looking value.

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