update

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldAttemptUpdate added in v0.8.0

func ShouldAttemptUpdate(ctx context.Context, p *core.Printer, dur time.Duration) (bool, error)

ShouldAttemptUpdate returns true if the application hasn't checked for an update longer than the provided duration.

func Update

func Update(ctx context.Context, p *core.Printer, timeout time.Duration, silent bool, dryRun bool) int

Update checks the API for the latest fetch version and upgrades the current executable in-place, returning the exit code to use.

Types

type Asset added in v0.5.0

type Asset struct {
	Name string `json:"name"`
	URL  string `json:"browser_download_url"`
}

type Release added in v0.5.0

type Release struct {
	TagName string  `json:"tag_name"`
	Assets  []Asset `json:"assets"`
}

Jump to

Keyboard shortcuts

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