Documentation
¶
Overview ¶
Package update implements update notifications and `reearth upgrade` (self-update from GitHub Releases with checksum verification).
Index ¶
Constants ¶
const Repo = "reearth/cli"
Repo is the GitHub repository that publishes releases.
Variables ¶
This section is empty.
Functions ¶
func ArchiveName ¶
ArchiveName returns the goreleaser archive name for a version (without "v").
func DoctorCheck ¶
DoctorCheck reports the version and install method.
func Executable ¶
Executable returns the resolved path of the running binary.
Types ¶
type Method ¶
type Method struct {
Name string `json:"name"`
// Command upgrades the CLI when Self is false.
Command string `json:"command,omitempty"`
// Self means `reearth upgrade` may replace the binary in place.
Self bool `json:"self"`
}
Method is how the running binary was installed.
func DetectMethod ¶
DetectMethod infers the install method from the executable path.