output

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 9 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 Failure added in v1.1.0

func Failure(msg string, args ...any) string

Failure prints a message with a fail emoji.

func Info added in v1.1.0

func Info(msg string, args ...any) string

Info prints a message with an info emoji.

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.

func Rocket added in v1.1.0

func Rocket(msg string, args ...any) string

Rocket prints a message with a rocket emoji.

func Success added in v1.1.0

func Success(msg string, args ...any) string

Success prints a message with a success emoji.

Types

This section is empty.

Jump to

Keyboard shortcuts

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