Documentation ¶
Index ¶
- func ConfigDocsURL(docID, anchor string) string
- func Log() zerolog.Logger
- func PrintQuestion(question string)
- func ProcessUserInput(prompt string) string
- type Format
- type Logger
- func (l *Logger) AsPlainText(exec func())
- func (l *Logger) Debugf(msg string, args ...any)
- func (l *Logger) Debugx(msg string, kv ...any)
- func (l *Logger) Error(err error, msg string)
- func (l *Logger) Errorf(msg string, args ...any)
- func (l *Logger) Errorx(msg string, kv ...any)
- func (l *Logger) FatalErr(err error)
- func (l *Logger) Fatalf(msg string, args ...any)
- func (l *Logger) Fatalx(msg string, kv ...any)
- func (l *Logger) Infof(msg string, args ...any)
- func (l *Logger) Infox(msg string, kv ...any)
- func (l *Logger) PendingRead() bool
- func (l *Logger) PlainTextInfo(msg string)
- func (l *Logger) PlainTextSuccess(msg string)
- func (l *Logger) ReadAllData() string
- func (l *Logger) SetBackground(v bool)
- func (l *Logger) SetLevel(level int)
- func (l *Logger) Warnf(msg string, args ...any)
- func (l *Logger) Warnx(msg string, kv ...any)
- func (l *Logger) Write(p []byte) (n int, err error)
- func (l *Logger) WriteStr(data string)
- type OutputFormat
- type StdErrWriter
- type StdInReader
- type StdOutWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDocsURL ¶ added in v0.1.0
func PrintQuestion ¶
func PrintQuestion(question string)
func ProcessUserInput ¶ added in v0.1.0
Types ¶
type Logger ¶ added in v0.1.0
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) AsPlainText ¶ added in v0.1.0
func (l *Logger) AsPlainText(exec func())
func (*Logger) PendingRead ¶ added in v0.1.0
PendingRead returns true if there is pending data to be read. This is useful for background loggers that need to be read in a loop before exiting.
func (*Logger) PlainTextInfo ¶ added in v0.1.0
func (*Logger) PlainTextSuccess ¶ added in v0.1.0
func (*Logger) ReadAllData ¶ added in v0.1.0
func (*Logger) SetBackground ¶ added in v0.1.0
type OutputFormat ¶ added in v0.0.2
type OutputFormat string
const ( OutputFormatUnset OutputFormat = "" OutputFormatJSON OutputFormat = "json" OutputFormatPrettyJSON OutputFormat = "jsonp" OutputFormatYAML OutputFormat = "yaml" )
type StdErrWriter ¶ added in v0.0.2
type StdInReader ¶ added in v0.0.2
type StdInReader struct{}
Click to show internal directories.
Click to hide internal directories.