ui

package
v0.0.0-...-f547b6d Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Green

func Green(text string) string

func Red

func Red(text string) string

func Yellow

func Yellow(text string) string

Types

type Printer

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

func NewPrinter

func NewPrinter(writer io.Writer, colorful bool) *Printer

func (*Printer) Print

func (p *Printer) Print(msg string, a ...any)

func (*Printer) PrintError

func (p *Printer) PrintError(msg string, a ...any)

func (*Printer) PrintErrorln

func (p *Printer) PrintErrorln(msg string, a ...any)

func (*Printer) PrintWarning

func (p *Printer) PrintWarning(msg string, a ...any)

func (*Printer) PrintWarningln

func (p *Printer) PrintWarningln(msg string, a ...any)

func (*Printer) Println

func (p *Printer) Println(msg string, a ...any)

type Progress

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

func NewDevNullProgress

func NewDevNullProgress() *Progress

func NewProgress

func NewProgress(writer io.Writer) *Progress

func (*Progress) Done

func (p *Progress) Done()

func (*Progress) Fail

func (p *Progress) Fail()

func (*Progress) Finalize

func (p *Progress) Finalize(message string, a ...any)

func (*Progress) Next

func (p *Progress) Next(message string, a ...any)

type Prompter

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

func NewPrompter

func NewPrompter(reader bufio.Reader, writer io.Writer) *Prompter

func (*Prompter) Prompt

func (p *Prompter) Prompt(label string, defaultChoice bool) bool

Jump to

Keyboard shortcuts

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