updatewire

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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