render

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RepoW   = 24
	BranchW = 25
	UncommW = 12
	AheadW  = 6
	BehindW = 6
)

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)

func RenderReposTable

func RenderReposTable(r report.ScanReport)

func RenderScanReportAsJson

func RenderScanReportAsJson(r report.ScanReport) error

func RenderScanReportAsTable

func RenderScanReportAsTable(r report.ScanReport)

Table setup (Path last, not truncated)

func Warning

func Warning(warning string)

func Warnings

func Warnings(warnings []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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