stdout

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepoW        = 24
	BranchW      = 30
	UncommW      = 3
	AheadW       = 3
	BehindW      = 3
	RemoteStateW = 3 + 3 + 3 + 4 //(uncommited files count + aheadW + behindW + 4 space)
)

Variables

View Source
var (
	BoldS    = color.New(color.Bold).SprintfFunc()
	DimS     = color.New(color.Faint).SprintfFunc()
	GrayS    = color.New(color.FgHiBlack).SprintfFunc()
	CyanBold = color.New(color.FgCyan, color.Bold).SprintfFunc()
	MagBold  = color.New(color.FgMagenta, color.Bold).SprintfFunc()
	BlueS    = color.New(color.FgBlue).SprintfFunc()
	RedS     = color.New(color.FgRed).SprintfFunc()
	RedB     = color.New(color.FgRed, color.Bold).SprintfFunc()
	GreenS   = color.New(color.FgGreen).SprintfFunc()
	YellowS  = color.New(color.FgYellow).SprintfFunc()
)

Functions

func Error

func Error(msg string)

Error prints a single error message with a highlighted prefix.

func RenderReposTable

func RenderReposTable(r report.ScanReport)

RenderReposTable renders the per-repository rows for a ScanReport as a table.

func RenderScanReportAsJson

func RenderScanReportAsJson(r report.ScanReport) error

RenderScanReportAsJson prints the ScanReport to stdout as pretty-printed JSON.

func RenderScanReportAsTable

func RenderScanReportAsTable(r report.ScanReport)

RenderScanReportAsTable prints a human-readable table view of the ScanReport to stdout. The Path column is printed last and not truncated.

func Warning

func Warning(warning string)

Warning prints a single warning message with a highlighted prefix.

func Warnings

func Warnings(warnings []string)

Warnings prints a list of warning messages with a highlighted prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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