Documentation
¶
Index ¶
- func CreateEventOutput(event *models.Event, resolvedPath string, config *models.Config) models.EventOutput
- func FormatDiffForWeb(diff string) string
- func IsTerminalSupported() bool
- func OutputJSON(event models.EventOutput, writer *os.File, config *models.Config)
- func OutputPlain(event models.EventOutput, writer *os.File, config *models.Config)
- func OutputTable(event models.EventOutput, writer *os.File, config *models.Config)
- func PrintTableHeader(writer *os.File, config *models.Config)
- type ColoredDiffFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEventOutput ¶
func FormatDiffForWeb ¶
FormatDiffForWeb takes a unified diff string and returns HTML with CSS classes and line numbers
func IsTerminalSupported ¶
func IsTerminalSupported() bool
IsTerminalSupported checks if the current terminal supports colors
func OutputJSON ¶
func OutputPlain ¶
func OutputTable ¶
Types ¶
type ColoredDiffFormatter ¶
type ColoredDiffFormatter struct {
// contains filtered or unexported fields
}
ColoredDiffFormatter provides colored diff output for terminals
func NewColoredDiffFormatter ¶
func NewColoredDiffFormatter() *ColoredDiffFormatter
NewColoredDiffFormatter creates a new colored diff formatter
func (*ColoredDiffFormatter) FormatDiff ¶
func (f *ColoredDiffFormatter) FormatDiff(diff string) string
FormatDiff takes a unified diff string and returns a colored version
Click to show internal directories.
Click to hide internal directories.