output

package
v1.0.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL