output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error)

func Print added in v0.2.0

func Print(msg string, opts ...interface{})

Print can be used for all general CLI prints and will append a magenta `dctl` prefix to all output

func PrintlnWithNameAndColor

func PrintlnWithNameAndColor(name, msg string, c Color, opts ...interface{})

func Warn added in v0.2.0

func Warn(msg string, opts ...interface{})

Warn can be used for user warnings and append an yellow `dctl` prefix to all output

Types

type Color

type Color int
const (
	None Color = iota
	Red
	Green
	Yellow
	Blue
	Magenta
	Cyan
	LightGray
	DarkGray
	LightRed
	LightGreen
	LightYellow
	LightBlue
	LightMagenta
	LightCyan
)

func (Color) String

func (c Color) String() string

Jump to

Keyboard shortcuts

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