Documentation ¶
Overview ¶
Package progressbar provides a simple progress bar for the CLI. This should have been called "loadingbar" instead as there is no progress at all.
Index ¶
- type MaskFn
- type MessageWriter
- func (m *MessageWriter) Close()
- func (m *MessageWriter) Closef(format string, args ...interface{})
- func (m *MessageWriter) Debugf(format string, args ...interface{})
- func (m *MessageWriter) Errorf(format string, args ...interface{})
- func (m *MessageWriter) Infof(format string, args ...interface{})
- func (m *MessageWriter) Tracef(format string, args ...interface{})
- func (m *MessageWriter) Warnf(format string, args ...interface{})
- func (m *MessageWriter) Write(p []byte) (n int, err error)
- type Option
- type WriteFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaskFn ¶
MaskFn is a function that masks a message. Receives a string and returns a string, the returned string is printed to the terminal.
type MessageWriter ¶
type MessageWriter struct {
// contains filtered or unexported fields
}
MessageWriter implements io.Writer on top of a channel of strings.
func (*MessageWriter) Close ¶
func (m *MessageWriter) Close()
Close closes the MessageWriter inner channel.
func (*MessageWriter) Closef ¶
func (m *MessageWriter) Closef(format string, args ...interface{})
Closef closes the MessageWriter after writing a message.
func (*MessageWriter) Debugf ¶
func (m *MessageWriter) Debugf(format string, args ...interface{})
Debugf is implemeted to comply with rig log.Logger interface.
func (*MessageWriter) Errorf ¶
func (m *MessageWriter) Errorf(format string, args ...interface{})
Errorf is implemeted to comply with rig log.Logger interface.
func (*MessageWriter) Infof ¶
func (m *MessageWriter) Infof(format string, args ...interface{})
Infof is implemeted to comply with rig log.Logger interface.
func (*MessageWriter) Tracef ¶
func (m *MessageWriter) Tracef(format string, args ...interface{})
Tracef is implemeted to comply with rig log.Logger interface.
func (*MessageWriter) Warnf ¶
func (m *MessageWriter) Warnf(format string, args ...interface{})
Warnf is implemeted to comply with rig log.Logger interface.
type Option ¶
type Option func(*MessageWriter)
Option is a function that sets an option on a MessageWriter.
func WithWriter ¶
WithWriter sets the WriteFn on the MessageWriter.