display

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Kind    EventKind
	Phase   string
	Message string
}

type EventKind

type EventKind string
const (
	EventProgress       EventKind = "progress"
	EventProgressOutput EventKind = "progress_output"
	EventWarning        EventKind = "warning"
	EventDebug          EventKind = "debug"
	EventClear          EventKind = "clear"
)

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type Renderer

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

func NewRenderer

func NewRenderer(out io.Writer, err io.Writer, jsonOut bool) *Renderer

func (*Renderer) Close

func (r *Renderer) Close()

func (*Renderer) Emit

func (r *Renderer) Emit(event Event)

func (*Renderer) Events

func (r *Renderer) Events() Sink

func (*Renderer) PrintCommandList added in v0.4.0

func (r *Renderer) PrintCommandList(title string, commands []string) error

func (*Renderer) PrintJSON

func (r *Renderer) PrintJSON(value any) error

func (*Renderer) PrintKeyValues

func (r *Renderer) PrintKeyValues(values []KeyValue) error

func (*Renderer) PrintSummary added in v0.4.0

func (r *Renderer) PrintSummary(title string, values []KeyValue) error

func (*Renderer) PrintText

func (r *Renderer) PrintText(text string) error

func (*Renderer) Stderr added in v0.3.0

func (r *Renderer) Stderr() io.Writer

func (*Renderer) Stdout added in v0.3.0

func (r *Renderer) Stdout() io.Writer

func (*Renderer) TTY added in v0.4.0

func (r *Renderer) TTY() bool

type Sink

type Sink interface {
	Emit(Event)
}

Jump to

Keyboard shortcuts

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