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 ¶
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" )
Click to show internal directories.
Click to hide internal directories.