Documentation ¶
Index ¶
- func CI(opt interface{}) error
- func IsInitialized() bool
- func LogFile(opt interface{}, changed bool) error
- func LogFormat(logFormat string) error
- func LogLevel(opt interface{}, changed bool) error
- func LogPath(opt interface{}, changed bool) error
- func NoColor(opt interface{}, changed bool) error
- func PrintResult(summary *model.Summary, failedQueries map[string]error, printer *Printer, ...) error
- func PrintScanDuration(elapsed time.Duration)
- func SetupPrinter(flags *pflag.FlagSet) error
- func Silent(opt interface{}) error
- func Verbose(opt interface{}, changed bool) error
- func WordWrap(s, indentation string, limit int) string
- type Printer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInitialized ¶
func IsInitialized() bool
IsInitialized returns true if printer is ready, false otherwise
func PrintResult ¶
func PrintResult(summary *model.Summary, failedQueries map[string]error, printer *Printer, usingCustomQueries bool) error
PrintResult prints on output the summary results
func PrintScanDuration ¶
PrintScanDuration prints the scan duration
func SetupPrinter ¶
SetupPrinter - configures stdout and log options with given FlagSet
Types ¶
type Printer ¶
type Printer struct { Medium color.RGBColor High color.RGBColor Low color.RGBColor Info color.RGBColor Success color.RGBColor Line color.RGBColor VersionMessage color.RGBColor ContributionMessage color.RGBColor // contains filtered or unexported fields }
Printer wil print console output with colors Medium is for medium sevevity results High is for high sevevity results Low is for low sevevity results Info is for info sevevity results Success is for successful prints Line is the color to print the line with the vulnerability minVersion is a bool that if true will print the results output in a minimum version
func (*Printer) PrintBySev ¶
PrintBySev will print the output with the specific severity color given the severity of the result