output

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 7 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