iostreams

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailureIcon

func FailureIcon() string

FailureIcon returns the failure icon as colored string

func SuccessIcon

func SuccessIcon() string

SuccessIcon returns the success icon as colored string

func UnknownIcon added in v0.11.0

func UnknownIcon() string

func WarningIcon added in v0.15.0

func WarningIcon() string

Types

type IOStreams

type IOStreams struct {
	In     io.ReadCloser
	Out    io.Writer
	ErrOut io.Writer
	// contains filtered or unexported fields
}

func System

func System() *IOStreams

func Test added in v0.6.0

func Test() (*IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer)

func (*IOStreams) CanPrompt

func (s *IOStreams) CanPrompt() bool

func (*IOStreams) IsStderrTTY

func (s *IOStreams) IsStderrTTY() bool

func (*IOStreams) IsStdinTTY

func (s *IOStreams) IsStdinTTY() bool

func (*IOStreams) IsStdoutTTY

func (s *IOStreams) IsStdoutTTY() bool

func (*IOStreams) SetNeverPrompt

func (s *IOStreams) SetNeverPrompt(v bool)

func (*IOStreams) SetProgessMessage added in v0.16.0

func (s *IOStreams) SetProgessMessage(msg string)

func (*IOStreams) SetStderrTTY

func (s *IOStreams) SetStderrTTY(isTTY bool)

func (*IOStreams) SetStdinTTY

func (s *IOStreams) SetStdinTTY(isTTY bool)

func (*IOStreams) SetStdoutTTY

func (s *IOStreams) SetStdoutTTY(isTTY bool)

func (*IOStreams) StartProgressIndicator added in v0.15.0

func (s *IOStreams) StartProgressIndicator()

func (*IOStreams) StopProgressIndicator added in v0.15.0

func (s *IOStreams) StopProgressIndicator()

Jump to

Keyboard shortcuts

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