Documentation
¶
Overview ¶
Package update tells someone at a terminal, at most once a day, that a newer release of the CLI exists. With npm gone, nothing else would: a downloaded binary stays as it is.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Interactive = func() bool { return !turnedOff(os.Getenv) && term.IsTerminal(int(os.Stderr.Fd())) }
Interactive reports whether a notice would be seen, and not end up in a CI log or in output a script reads. Tests replace it.
View Source
var LatestURL = "https://github.com/steadybit/cli/releases/latest"
LatestURL redirects to the tag of the latest release. Asking where it redirects costs none of the GitHub API's rate limit. Tests point it elsewhere.
View Source
var Now = time.Now
Now is the clock the daily check is measured against. Tests replace it.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.