Documentation
¶
Overview ¶
Package update finds out whether a newer triage release exists and installs it.
Index ¶
Constants ¶
View Source
const ( // ReleaseRepo is where triage releases are published. ReleaseRepo = "aloglu/triage" // Package is what `go install` installs. Package = "github.com/aloglu/triage/cmd/triage" )
Variables ¶
This section is empty.
Functions ¶
func InstallDir ¶
InstallDir returns the directory `go install` writes binaries to.
func IsRelease ¶
IsRelease reports whether version is a tagged release, as opposed to a development build, which never gets update notices.
func RunningFrom ¶
func RunningFrom() string
RunningFrom returns the directory of the running triage binary.
Types ¶
type Release ¶
Release describes an available version.
func Cached ¶
Cached returns the newest release seen so far if it's newer than current, without contacting GitHub.
Click to show internal directories.
Click to hide internal directories.