version

package
v0.19.8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintUpdateWarning

func PrintUpdateWarning(result *CheckResult, cfg *config.Config, output *io.Writer)

PrintUpdateWarning prints a warning message to stderr if an update is available

Types

type CheckResult

type CheckResult struct {
	UpdateAvailable bool
	LatestVersion   string
	CurrentVersion  string
	InstallMethod   InstallMethod
	UpdateCommand   string
}

CheckResult contains the result of a version check

func PerformCheck

func PerformCheck(cfg *config.Config, output *io.Writer, force bool) *CheckResult

PerformCheck performs the full version check flow: 1. Check if enough time has passed 2. Fetch and compare versions 3. Update the last check timestamp 4. Print warning if update available

type InstallMethod

type InstallMethod string

InstallMethod represents how Tiger CLI was installed

const (
	InstallMethodHomebrew    InstallMethod = "homebrew"
	InstallMethodDeb         InstallMethod = "deb"
	InstallMethodRPM         InstallMethod = "rpm"
	InstallMethodInstallSh   InstallMethod = "install_sh"
	InstallMethodUnknown     InstallMethod = "unknown"
	InstallMethodDevelopment InstallMethod = "development"
)

Jump to

Keyboard shortcuts

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