output

package
v0.0.0-...-d844598 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InfoColor    = lipgloss.Color("86")
	SuccessColor = lipgloss.Color("78")
	WarningColor = lipgloss.Color("208")
	ErrorColor   = lipgloss.Color("196")
	FatalColor   = lipgloss.Color("196")
)

Variables

This section is empty.

Functions

func NewTable

func NewTable(headers []string) *table

NewTable creates a new table with the given headers

func WriteError

func WriteError(msg string, args ...interface{})

func WriteFatal

func WriteFatal(msg string, args ...interface{})

func WriteInfo

func WriteInfo(msg string, args ...interface{})

func WriteJSON

func WriteJSON(output interface{})

WriteJSON writes the given output as pretty printed JSON to stdout

func WriteSuccess

func WriteSuccess(msg string, args ...interface{})

func WriteWarning

func WriteWarning(msg string, args ...interface{})

func WriteYAML

func WriteYAML(output interface{})

WriteYAML writes the given output as a pretty printed YAML object to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳