updater

package
v1.103.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	//UrlPath for retrieving the latest release version
	// UrlPath = "https://api.github.com/repos/f1bonacc1/process-compose/releases/latest"
	UrlPath = "https://shr.pn/process-compose-latest"
)

Variables

This section is empty.

Functions

func CheckCanReplace added in v1.100.0

func CheckCanReplace() (string, error)

checkCanReplace verifies that the current binary can be replaced before downloading.

func CompareVersions added in v1.100.0

func CompareVersions(current, latest string) int

CompareVersions compares two semantic version strings. Returns -1 if current < latest, 0 if equal, 1 if current > latest. Non-numeric versions (e.g. "undefined") are treated as older than any numeric version.

func GetLatestReleaseName

func GetLatestReleaseName() (string, error)

func Update added in v1.100.0

func Update() error

Update downloads and installs the latest version of process-compose.

Types

type Release

type Release struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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