output

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListItem

type ListItem struct {
	Marker string
	Text   string
}

type Renderer

type Renderer interface {
	Success(out io.Writer, message string)
	Detail(out io.Writer, label, value string)
	List(out io.Writer, items []ListItem)
	Step(out io.Writer, status StepStatus, message string)
	Error(out io.Writer, errOut io.Writer, err error)
}

type StepStatus

type StepStatus int
const (
	StepOK StepStatus = iota
	StepFail
	StepPending
)

type TextRenderer

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

func NewTextRenderer

func NewTextRenderer(isTTY bool) *TextRenderer

func (*TextRenderer) Detail

func (r *TextRenderer) Detail(out io.Writer, label, value string)

func (*TextRenderer) Error

func (r *TextRenderer) Error(_ io.Writer, errOut io.Writer, err error)

func (*TextRenderer) List

func (r *TextRenderer) List(out io.Writer, items []ListItem)

func (*TextRenderer) Step

func (r *TextRenderer) Step(out io.Writer, status StepStatus, message string)

func (*TextRenderer) Success

func (r *TextRenderer) Success(out io.Writer, message string)

Jump to

Keyboard shortcuts

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