Documentation
¶
Index ¶
- Variables
- func Ask(query string, args ...interface{}) (string, error)
- func ColorPrint(col *color.Color, msg string)
- func Error(msg string)
- func Errorf(format string, args ...interface{})
- func Info(msg string)
- func Infof(format string, args ...interface{})
- func Print(msg string)
- func Prompt(commands []PromptCmd) error
- func Warn(msg string)
- func Warnf(format string, args ...interface{})
- type Logger
- func (l *Logger) ColorPrint(col *color.Color, msg string)
- func (l *Logger) Error(msg string)
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Print(msg string)
- func (l *Logger) Warn(msg string)
- func (l *Logger) Warnf(format string, args ...interface{})
- type PromptCmd
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPromptCommandIsNotKnown = errors.New("prompt command is not known")
View Source
var NeutralColor = color.New(color.FgCyan)
View Source
var NoColor = color.New()
View Source
var SuccessColor = color.New(color.FgGreen)
View Source
var WarnColor = color.New(color.FgYellow)
Functions ¶
func ColorPrint ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func PrefixedLogger ¶
Click to show internal directories.
Click to hide internal directories.