log

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Yellow  = color.New(color.FgHiYellow, color.BgBlack).SprintFunc()
	Green   = color.New(color.FgHiGreen, color.BgBlack).SprintFunc()
	Blue    = color.New(color.FgHiBlue, color.BgBlack).SprintFunc()
	Cyan    = color.New(color.FgCyan, color.BgBlack).SprintFunc()
	Red     = color.New(color.FgHiRed, color.BgBlack).SprintFunc()
	Magenta = color.New(color.FgHiMagenta, color.BgBlack).SprintFunc()

	Colors = []func(a ...interface{}) string{Yellow, Green, Blue, Cyan, Red, Magenta}
)

Functions

func GetColor

func GetColor(num int) func(a ...interface{}) string

GetColor Rotates color

func PrintLines added in v1.0.0

func PrintLines(cmd *cobra.Command, name string, previousLogLines, logLines []string, color func(a ...interface{}) string)

PrintLines logs lines with color

Types

This section is empty.

Jump to

Keyboard shortcuts

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