selfupdate

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package selfupdate upgrades the running casa binary from GitHub releases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Latest

func Latest() (string, error)

Latest returns the newest release tag, e.g. "v0.1.0".

func LatestThrottled

func LatestThrottled() string

LatestThrottled is Latest with a 24h on-disk cache, for background checks that shouldn't hit the network on every run. Returns "" when unknown.

func Newer

func Newer(current, latest string) bool

Newer reports whether latest is a strictly newer release than current. Dev and go-pseudo builds (anything that isn't a vMAJOR.MINOR.PATCH semver) never compare newer.

func Upgrade

func Upgrade(tag string) (string, error)

Upgrade downloads the release build for this OS/arch and atomically replaces the running binary. Returns the path that was replaced.

Types

This section is empty.

Jump to

Keyboard shortcuts

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