Documentation
¶
Overview ¶
Package update tells a user that a newer release exists. Once a day a detached child asks the repository for its version tags (`git ls-remote`) and writes the newest to the state folder; the status line only reads that file. Nothing is downloaded or installed.
Index ¶
Constants ¶
const ( Repo = "https://github.com/lfeagan/claude-sitrep.git" Interval = 24 * time.Hour Deadline = 20 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(ctx context.Context, run runner.Runner, st state.Store, now time.Time, repo string, env []string)
Check asks the repository for its newest release and records it. A failure leaves the record as the claim made it.
Types ¶
type Record ¶
Record is what the last check left: when it ran, and the newest release it saw (the zero Version when it saw none).
type Version ¶
type Version [3]int
Version is a release number. It is made only by Parse, so what is shown has the form MAJOR.MINOR.PATCH and nothing else.
func Parse ¶
Parse reads vMAJOR.MINOR.PATCH (the v is optional); each part is at most nine digits. Other tags, such as bash-final, are not versions.