Documentation
¶
Overview ¶
Package updatewire builds the blit UpdateConfig used by gitstream. Extracting this into a tiny helper makes the update pipeline testable against updatetest.NewMockServer without spinning up the full TUI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(version string) blit.UpdateConfig
New returns a UpdateConfig wired for the gitstream binary. Callers pass the current version string (typically set via ldflags). The mode is UpdateForced so release notes carrying a `minimum_version:` marker trigger the full-screen update gate automatically.
func NewWithBaseURL ¶
func NewWithBaseURL(version, baseURL, cacheDir string) blit.UpdateConfig
NewWithBaseURL is the test hook: it returns the same config as New but pointed at a mock server URL so update_test.go can assert the full CheckForUpdate flow without hitting api.github.com.
Types ¶
This section is empty.