ui

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlowSpinner

func FlowSpinner(prefix string) io.WriteCloser

A spinner which changes speed based on writes to io.WriteCloser

func GitProgressPipe

func GitProgressPipe(op string, w io.Writer) io.WriteCloser

Types

type StreamedUi

type StreamedUi struct {
	OutputWriter io.Writer
	OutputBuffer *bytes.Buffer

	ErrorWriter io.Writer
	ErrorBuffer *bytes.Buffer
	// contains filtered or unexported fields
}

func (*StreamedUi) Ask

func (u *StreamedUi) Ask(query string) (string, error)

func (*StreamedUi) AskSecret

func (u *StreamedUi) AskSecret(query string) (string, error)

func (*StreamedUi) AttachErrorReadCloser

func (u *StreamedUi) AttachErrorReadCloser(r io.ReadCloser) (*bytes.Buffer, chan bool)

func (*StreamedUi) AttachOutputReadCloser

func (u *StreamedUi) AttachOutputReadCloser(r io.ReadCloser) (*bytes.Buffer, chan bool)

func (*StreamedUi) Error

func (u *StreamedUi) Error(message string)

func (*StreamedUi) FlushBuffers

func (u *StreamedUi) FlushBuffers()

func (*StreamedUi) Info

func (u *StreamedUi) Info(message string)

func (*StreamedUi) Init

func (u *StreamedUi) Init()

func (*StreamedUi) Output

func (u *StreamedUi) Output(message string)

func (*StreamedUi) ReplaceErrorWriter

func (u *StreamedUi) ReplaceErrorWriter(w io.Writer)

func (*StreamedUi) ReplaceOutputWriter

func (u *StreamedUi) ReplaceOutputWriter(w io.Writer)

func (*StreamedUi) Warn

func (u *StreamedUi) Warn(message string)

Jump to

Keyboard shortcuts

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