update

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultReleaseURL = "https://api.github.com/repos/codag-megalith/codag-cli/releases/latest"
	InstallCommand    = "curl -fsSL https://codag.ai/install.sh | sh"
)

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(a, b string) int

func NormalizeVersion

func NormalizeVersion(v string) string

Types

type Checker

type Checker struct {
	ReleaseURL string
	HTTP       *http.Client
}

func New

func New(timeout time.Duration) Checker

func (Checker) Check

func (c Checker) Check(current string) (*Info, error)

type Info

type Info struct {
	Current   string `json:"current"`
	Latest    string `json:"latest"`
	URL       string `json:"url,omitempty"`
	Available bool   `json:"available"`
}

Jump to

Keyboard shortcuts

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