Versions in this module Expand all Collapse all v1 v1.8.0 Dec 1, 2026 Changes in this version + const MaxApp + const MaxCopy + const MaxDepth + const MaxID + const MaxMsg + const MaxRecords + const MaxSequence + const MaxTitle + const NoProgress + const Query + const QueryReply + const RefreshEvery + const StoreCap + func IsQuery(body string) bool + func Name(s string) string + func ParseCopy(body string) (string, bool) + func ProgressSequence(r Report) string + func ProgressTerminal(getenv func(string) string) bool + func Strip(p []byte) []byte + func Summary(recs []Report) string + func TitleSequence(title string) string + func TitleText(app, name string, r Report) string + type Kind string + const Auth + const Permission + const Question + type ProgressState int + const ProgressError + const ProgressHidden + const ProgressIndeterminate + const ProgressNormal + const ProgressPaused + type Report struct + App string + ID string + Kind Kind + Msg string + Progress int + State State + Title string + func Parse(body string) (Report, bool) + func ProgressReport(body string) (Report, bool) + func Root(recs []Report) Report + func (r Report) Sequence() string + type Scanner struct + Clipboard func(text string) + Query func() + Report func(Report) + func NewScanner(w io.Writer, report func(Report), query func()) *Scanner + func (s *Scanner) Write(p []byte) (int, error) + type State string + const Blocked + const Clear + const Done + const Error + const Idle + const Working + type Store struct + func (s *Store) Apply(r Report) bool + func (s *Store) Len() int + func (s *Store) ProcessEnded() bool + func (s *Store) Records() []Report + func (s *Store) Reset() bool + type Stripper struct + Report func(Report) + func NewStripper(w io.Writer, report func(Report)) *Stripper + func (s *Stripper) Write(p []byte) (int, error) + type Tracker struct + func NewTracker(w io.Writer, app string) *Tracker + func (t *Tracker) Blocked(kind Kind, msg string) + func (t *Tracker) Child(id string, r Report) + func (t *Tracker) Clear() + func (t *Tracker) ClearChild(id string) + func (t *Tracker) Done(msg string) + func (t *Tracker) Error(msg string) + func (t *Tracker) Exit() + func (t *Tracker) Idle() + func (t *Tracker) Settled() bool + func (t *Tracker) Title(name string) + func (t *Tracker) Unblocked() + func (t *Tracker) WithProgress(on bool) *Tracker + func (t *Tracker) Working(progress int, msg string)