release

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package release tracks which version of jaira last prepared a board, and carries the change notes a user reads when a newer binary catches up an older one.

The notes are never copied to disk anywhere: a copy can drift from the binary that reads it, but the binary always knows what is in itself. So the notes are embedded with go:embed and read straight out of the executable.

Index

Constants

This section is empty.

Variables

View Source
var Current = "dev"

Current is the version of the running binary. It is a package-level var, set once by cli.Execute, because the TUI also creates boards and plumbing a version string through the whole TUI to stamp one file is not worth it.

Functions

func Stamp

func Stamp(dir string) error

Stamp records Current as the version that last prepared dir.

func Stamped

func Stamped(dir string) string

Stamped reads <dir>/version, trimmed. Errors are deliberately swallowed: a missing or unreadable stamp is indistinguishable from "never recorded" for every purpose this serves.

Types

type Entry

type Entry struct {
	Version string
	Changes []string
}

Entry is one release's worth of change notes.

func Notes

func Notes() []Entry

Notes parses the embedded NOTES.md, newest release first, in file order.

func Since

func Since(stamped string) []Entry

Since returns the entries newer than stamped, selecting by position in the notes file rather than by parsing version numbers. A stamp that appears nowhere in the file — empty, "dev", a snapshot build, or a version older than the oldest entry — cannot be reasoned about any other way, so it selects everything. Showing too much on an unknown stamp is the safe direction; showing too little is not.

Jump to

Keyboard shortcuts

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