printer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorRed    = "\x1b[91m"
	ColorGreen  = "\x1b[32m"
	ColorBlue   = "\x1b[94m"
	ColorGray   = "\x1b[90m"
	ColorYellow = "\x1b[33m"
	ColorWhite  = "\x1b[37m"
)

Functions

func CreateBodyRow

func CreateBodyRow(cellsData []CellData) []*simpletable.Cell

func CreateFooter

func CreateFooter(s Statistics, columnsCount int) *simpletable.Footer

func CreateHeader

func CreateHeader(titles []string) *simpletable.Header

func PrintError

func PrintError(msg string)

PrintErrorf prints a message with error color

func PrintErrors

func PrintErrors(errors []error)

func PrintFindings

func PrintFindings(results []checkmodels.CheckRunResult, outputFilePath string, isQuiet bool)

func PrintOutputToFile

func PrintOutputToFile(data []checkmodels.CheckRunResult, outputFilePath string)

Types

type CellData

type CellData struct {
	// contains filtered or unexported fields
}

type Statistics

type Statistics struct {
	Passed int
	Failed int
}

Jump to

Keyboard shortcuts

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