autoupdate

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GithubOwner = "sleuth-io"
	GithubRepo  = "sx"
)

Variables

This section is empty.

Functions

func ApplyPendingUpdate added in v0.12.6

func ApplyPendingUpdate() bool

ApplyPendingUpdate checks for a pending update marker and applies it. This should be called at startup before CheckAndUpdateInBackground. The fast path (no marker) is a single os.Stat call. Returns true if an update was applied (caller should re-exec).

func CheckAndUpdateInBackground

func CheckAndUpdateInBackground()

CheckAndUpdateInBackground checks for updates and installs them automatically if found. It only checks once per day (tracked via cache file). This function returns immediately and doesn't block.

func ClearPendingUpdate added in v0.12.6

func ClearPendingUpdate()

ClearPendingUpdate removes the pending update marker file. Call this after a successful manual update (e.g., `sx update`).

Types

This section is empty.

Jump to

Keyboard shortcuts

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