installprogress

package
v1.48.7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package installprogress presents shell-owned installer state. It never runs installation operations or decides their outcome.

Index

Constants

View Source
const Capability = "installer-progress-v1"

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, path string, options Options) error

Run observes one existing, regular, append-only event file until stop or context cancellation. Reads and pending line storage are bounded. Malformed events fail the observer without echoing their contents to the terminal.

Types

type Options

type Options struct {
	Output        io.Writer
	Rich          bool
	Width         int
	Interval      time.Duration
	OwnerPID      int
	Transient     bool
	TerminalWidth func() int
}

Options controls presentation only. Rich must be selected by the caller after checking its output terminal. Width is measured in terminal columns.

Jump to

Keyboard shortcuts

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