Documentation
¶
Index ¶
Constants ¶
View Source
const ( RepoW = 24 BranchW = 20 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 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.