update

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

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

func NewChecker(currentVersion string) *Checker

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

type Release

type Release struct {
	TagName string `json:"tag_name"`
	HTMLURL string `json:"html_url"`
}

Release represents a GitHub release

Jump to

Keyboard shortcuts

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