progress

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package progress provides multiple styled progress displays for kforge builds.

Available styles (set via --progress flag):

spinner  — animated spinner + colored step names (default when TTY)
bar      — per-step ASCII progress bars
banner   — big ASCII banner header + streaming plain logs
dots     — minimal pulsing dots
plain    — raw BuildKit log output (no colors)
auto     — spinner if TTY, plain otherwise

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(w io.Writer, style Style, ch <-chan *client.SolveStatus, toolName, version string, platforms []string) error

Display reads from ch and writes formatted progress to w. It returns the list of build warnings when the channel closes.

Types

type Style

type Style string

Style represents a progress display mode.

const (
	StyleAuto    Style = "auto"
	StyleSpinner Style = "spinner"
	StyleBar     Style = "bar"
	StyleBanner  Style = "banner"
	StyleDots    Style = "dots"
	StylePlain   Style = "plain"
)

Jump to

Keyboard shortcuts

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