ui

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffered

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

func NewBuffered

func NewBuffered() *Buffered

func (*Buffered) Append

func (b *Buffered) Append(stdout, stderr string) error

Append is like Write but ensures that it's on a newline from any previously written data.

func (*Buffered) CombinedOutput

func (b *Buffered) CombinedOutput() string

func (*Buffered) Stderr

func (b *Buffered) Stderr() io.Writer

func (*Buffered) StderrString

func (b *Buffered) StderrString() string

func (*Buffered) Stdout

func (b *Buffered) Stdout() io.Writer

func (*Buffered) StdoutString

func (b *Buffered) StdoutString() string

func (*Buffered) Write

func (b *Buffered) Write(stdout, stderr string) error

type Output

type Output interface {
	io.ReadWriter
	String() string
}

type UI

type UI interface {
	Stdout() io.Writer
	StdoutString() string
	Stderr() io.Writer
	StderrString() string
	CombinedOutput() string
	Write(stdout, stderr string) error
	Append(stdout, stderr string) error
}

Jump to

Keyboard shortcuts

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