formatter

package
v0.0.0-...-e1a9d15 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinTermWidth = 120
)

MinTermWidth is required terminal width

Variables

This section is empty.

Functions

func ShortFormat

func ShortFormat(name string) string

Types

type FormattedResult

type FormattedResult struct {
	Report string
	Errors string
}

FormattedResult contains the report and its errors

func CookbooksReportSummary

func CookbooksReportSummary(state *reporting.CookbooksReport) FormattedResult

CookbooksReportSummary prints smaller, summarized report

func MakeCookbooksReportCSV

func MakeCookbooksReportCSV(state *reporting.CookbooksReport) *FormattedResult

MakeCookbooksReportCSV generates a CSV formatted cookbooks report

func MakeCookbooksReportTXT

func MakeCookbooksReportTXT(state *reporting.CookbooksReport) *FormattedResult

MakeCookbooksReportTXT text output of long, non-summarize report

func MakeNodesReportCSV

func MakeNodesReportCSV(records []*reporting.NodeReportItem, nodeFilter string) *FormattedResult

MakeNodesReportCSV generates a CSV formatted nodes report

func MakeNodesReportTXT

func MakeNodesReportTXT(records []*reporting.NodeReportItem, nodeFilter string) *FormattedResult

MakeNodesReportTXT text output of long, non-summarize report

func NodesReportSummary

func NodesReportSummary(records []*reporting.NodeReportItem, appliedNodesFilter string) FormattedResult

NodesReportSummary prints smaller, summarized report

Jump to

Keyboard shortcuts

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