ui

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TTY

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

func NewCustomWriterTTY

func NewCustomWriterTTY(debug bool, stdout, stderr io.Writer) TTY

Used for testing whether TTY writes correct output to stdout/stderr

func NewTTY

func NewTTY(debug bool) TTY

func (TTY) DebugWriter

func (t TTY) DebugWriter() io.Writer

func (TTY) Debugf

func (t TTY) Debugf(str string, args ...interface{})

func (TTY) Printf

func (t TTY) Printf(str string, args ...interface{})

func (TTY) Warnf

func (t TTY) Warnf(str string, args ...interface{})

type UI

type UI interface {
	Printf(string, ...interface{})
	Debugf(string, ...interface{})
	Warnf(str string, args ...interface{})
	DebugWriter() io.Writer
}

Jump to

Keyboard shortcuts

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