print

package
v11.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package print outputs complex data structures to the CLI.

Index

Constants

This section is empty.

Variables

View Source
var NoFinalMessages = []string{} //nolint:gochecknoglobals

NoFinalMessages can be used by callers of PrintFooter to indicate that the command has no final messages to print.

Functions

func DryRunMessage

func DryRunMessage()

DryRunMessage prints the dry-run message.

func Entry

func Entry(label, value string)

func Error

func Error(err error)

Error prints the given error message to the console.

func Footer(verbose bool, commandsCount int, finalMessages []string)
func Header(text string)

func LabelAndValue

func LabelAndValue(label, value string)

LabelAndValue prints the label bolded and underlined the value indented on the next line followed by an empty line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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