Documentation ¶
Overview ¶
Package output provides utilities to print output in commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintError ¶
func PrintError(err error, l *zap.SugaredLogger)
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.