updater

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package updater provides GitHub release-based update checking and self-update functionality for the NextDeploy CLI and Daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndPrint

func CheckAndPrint(current string)

CheckAndPrint silently checks GitHub for a newer release and prints a one-line hint to stderr. Designed to be called as a goroutine so it never blocks.

func SelfUpdate

func SelfUpdate(current string) error

SelfUpdate downloads the latest nextdeploy CLI binary and replaces the binary at /usr/local/bin/nextdeploy.

func SelfUpdateDaemon added in v0.0.9

func SelfUpdateDaemon(current string) error

SelfUpdateDaemon downloads the latest nextdeployd binary, replaces the binary at /usr/local/bin/nextdeployd, and restarts the systemd service.

Types

type Release

type Release struct {
	TagName string `json:"tag_name"`
	HTMLURL string `json:"html_url"`
}

Release represents the subset of GitHub release API fields we care about.

func LatestRelease

func LatestRelease() (Release, error)

LatestRelease fetches the latest release tag from GitHub. Returns an empty Release and an error on failure.

Jump to

Keyboard shortcuts

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