Documentation ¶
Index ¶
- func FlowSpinner(prefix string) io.WriteCloser
- func GitProgressPipe(op string, w io.Writer) io.WriteCloser
- type StreamedUi
- func (u *StreamedUi) Ask(query string) (string, error)
- func (u *StreamedUi) AskSecret(query string) (string, error)
- func (u *StreamedUi) AttachErrorReadCloser(r io.ReadCloser) (*bytes.Buffer, chan bool)
- func (u *StreamedUi) AttachOutputReadCloser(r io.ReadCloser) (*bytes.Buffer, chan bool)
- func (u *StreamedUi) Error(message string)
- func (u *StreamedUi) FlushBuffers()
- func (u *StreamedUi) Info(message string)
- func (u *StreamedUi) Init()
- func (u *StreamedUi) Output(message string)
- func (u *StreamedUi) ReplaceErrorWriter(w io.Writer)
- func (u *StreamedUi) ReplaceOutputWriter(w io.Writer)
- func (u *StreamedUi) Warn(message string)
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) 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)
Click to show internal directories.
Click to hide internal directories.