cli

package
v0.0.0-...-587efbe Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Purple = "\033[35m"
	Cyan   = "\033[36m"
	Gray   = "\033[37m"
	White  = "\033[97m"

	ClearLineCode = "\r\033[2K\r"
)
View Source
const (
	CheckResultTagPass    = Green + "PASS" + Reset
	CheckResultTagFail    = Red + "FAIL" + Reset
	CheckResultTagSkip    = Yellow + "SKIP" + Reset
	CheckResultTagRunning = Cyan + "RUNNING" + Reset
	CheckResultTagAborted = Red + "ABORTED" + Reset
	CheckResultTagError   = Red + "ERROR" + Reset
)

Variables

View Source
var CliCheckLogSniffer = &cliCheckLogSniffer{}

Functions

func LineAlignCenter

func LineAlignCenter(s string, w int) string

func LineAlignLeft

func LineAlignLeft(s string, w int) string

func LineColor

func LineColor(s, color string) string

func PrintBanner

func PrintBanner()

func PrintCheckAborted

func PrintCheckAborted(checkName, reason string)

func PrintCheckErrored

func PrintCheckErrored(checkName string)

func PrintCheckFailed

func PrintCheckFailed(checkName string)

func PrintCheckPassed

func PrintCheckPassed(checkName string)

func PrintCheckRunning

func PrintCheckRunning(checkName string)

func PrintCheckSkipped

func PrintCheckSkipped(checkName, reason string)

func PrintResultsTable

func PrintResultsTable(results map[string][]int)

func WrapLines

func WrapLines(text string, maxWidth int) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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