update

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package update provides passive version checking against GitHub releases.

On startup Cortex can query the GitHub API for the latest release tag and print a one-line notice when a newer version is available. The check runs in a goroutine with a short timeout so it never blocks the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Latest    string // latest release tag (e.g. "v0.4.0")
	UpdateURL string // URL to the release page
}

Result holds the outcome of a version check.

func Check

func Check(currentVersion string) *Result

Check queries the GitHub releases API and returns a Result when a newer version is available. Returns nil when the current version is up-to-date or when the check cannot be performed (network error, dev build, etc.).

Jump to

Keyboard shortcuts

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