Documentation ¶
Overview ¶
Package output provides utilities to print output in commands.
Index ¶
- func Failure(msg string, args ...any) string
- func Info(msg string, args ...any) string
- func PrintError(err error, l *zap.SugaredLogger, prettyPrint bool)
- func PrintOutput(cmd *cobra.Command, l *zap.SugaredLogger, output interface{})
- func Rocket(msg string, args ...any) string
- func Success(msg string, args ...any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
func PrintError(err error, l *zap.SugaredLogger, prettyPrint bool)
PrintError formats and prints an error to logger.
func PrintOutput ¶
func PrintOutput(cmd *cobra.Command, l *zap.SugaredLogger, output interface{})
PrintOutput prints output as a string or json.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.