Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayColorSchemes ¶
func DisplayColorSchemes()
DisplayColorSchemes outputs a quick preview of the configured color scheme to stdout.
func Print ¶
func Print[T PrintDocument](formatter *Formatter, document T) error
Print renders the given document using the configured formatter
func RenderMatchShort ¶
RenderMatchShort Renders a match as a single line of colored text
Types ¶
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
Formatter can be used to format grype reports for output use NewFormatter to configure a new formatter.
func NewFormatter ¶
NewFormatter configures a new formatter for handling grype documents
Click to show internal directories.
Click to hide internal directories.