ui

package
v0.0.0-...-60114c9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInPlaceView

func NewInPlaceView(w io.Writer, ts *ThrobberSet, refreshEvery time.Duration) (Viewer, ShutdownFunc, error)

Types

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func New

func New(w io.Writer) (*Handle, error)

func (*Handle) Get

func (h *Handle) Get(key string) string

func (*Handle) Set

func (h *Handle) Set(key, line string)

func (*Handle) Setf

func (h *Handle) Setf(key, format string, a ...interface{})

func (*Handle) Stop

func (h *Handle) Stop()

func (*Handle) UpdateEvery

func (h *Handle) UpdateEvery(every time.Duration)

type ShutdownFunc

type ShutdownFunc func()

type Throbber

type Throbber struct {
	// contains filtered or unexported fields
}

func NewThrobber

func NewThrobber(values []string) *Throbber

func (*Throbber) Next

func (t *Throbber) Next() string

type ThrobberSet

type ThrobberSet struct {
	// contains filtered or unexported fields
}

func NewThrobberSet

func NewThrobberSet(values []string) *ThrobberSet

func (*ThrobberSet) Next

func (ts *ThrobberSet) Next(key string) string

type Viewer

type Viewer interface {
	Update(string, diff.Changelog)
}

func NewTerminalView

func NewTerminalView(w io.Writer) Viewer

Jump to

Keyboard shortcuts

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