Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckResult ¶
type CheckResult struct {
UpdateAvailable bool
LatestVersion string
CurrentVersion string
ReleaseURL string
InstallMethod InstallMethod
Error error
}
CheckResult contains the result of an update check
func Check ¶
func Check(currentVersion string) CheckResult
Check compares the current version against the latest GitHub release.
func (CheckResult) UpdateHint ¶
func (r CheckResult) UpdateHint() string
UpdateHint returns a user-friendly update command based on install method
type Checker ¶
type Checker struct {
CurrentVersion string
}
Checker provides update checking functionality
func NewChecker ¶
NewChecker creates a new update checker for the given version
func (*Checker) Check ¶
func (c *Checker) Check() CheckResult
Check compares the current version against the latest GitHub release. Returns immediately if current version is "dev" (development build).
type InstallMethod ¶
type InstallMethod int
const ( InstallUnknown InstallMethod = iota InstallHomebrew InstallGo )
func DetectInstallMethod ¶
func DetectInstallMethod() InstallMethod
DetectInstallMethod determines how openkanban was installed
Click to show internal directories.
Click to hide internal directories.