Documentation
¶
Index ¶
- Variables
- func Error(args interface{})deprecated
- func Errorf(format string, args ...interface{})deprecated
- func Fatal(args interface{})deprecated
- func Fatalf(format string, args ...interface{})deprecated
- func Info(text string)
- func Infof(format string, a ...interface{})
- func PrintConfirmation(action, content string)
- func Success(text string)
- func Successf(format string, args ...interface{})
- func Warn(text string)
- func Warnf(format string, args ...interface{})
- type Styles
Constants ¶
This section is empty.
Variables ¶
View Source
var StderrRenderer = sync.OnceValue(func() *lipgloss.Renderer { return lipgloss.NewRenderer(os.Stderr, termenv.WithColorCache(true)) })
View Source
var StderrStyles = sync.OnceValue(func() Styles { return MakeStyles(StderrRenderer()) })
View Source
var StdoutRenderer = sync.OnceValue(func() *lipgloss.Renderer { return lipgloss.DefaultRenderer() })
View Source
var StdoutStyles = sync.OnceValue(func() Styles { return MakeStyles(StdoutRenderer()) })
Functions ¶
func Error
deprecated
func Error(args interface{})
Deprecated: uses display.StderrRenderer() Error handles and displays an error message. It formats the error message using the provided arguments.
func Fatal
deprecated
func Fatal(args interface{})
Deprecated: uses display.StderrRenderer() Fatal handles and displays a fatal error message. It then exits the program with a status code of 1.
func Infof ¶
func Infof(format string, a ...interface{})
Infof formats and prints an informational message with the defined style.
func PrintConfirmation ¶
func PrintConfirmation(action, content string)
Types ¶
Click to show internal directories.
Click to hide internal directories.