update

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package update provides CLI self-update functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForUpdateAsync

func CheckForUpdateAsync(currentVersion string)

CheckForUpdateAsync checks for updates in the background and prints a message if available. This can be called during CLI startup for non-blocking update notifications.

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

NewUpdateCmd creates the update command.

Types

type Asset

type Asset struct {
	Name               string `json:"name"`
	Size               int64  `json:"size"`
	BrowserDownloadURL string `json:"browser_download_url"`
	ContentType        string `json:"content_type"`
}

Asset represents a release asset (downloadable file).

type Release

type Release struct {
	TagName    string  `json:"tag_name"`
	Name       string  `json:"name"`
	HTMLURL    string  `json:"html_url"`
	Body       string  `json:"body"`
	Draft      bool    `json:"draft"`
	Prerelease bool    `json:"prerelease"`
	Assets     []Asset `json:"assets"`
}

Release represents a GitHub release.

Jump to

Keyboard shortcuts

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