Documentation
¶
Overview ¶
Package tui renders scan report in an interactive table
Index ¶
- func GetLines(s string) (lines []string, widest int)
- func PlaceOverlay(x, y int, fg, bg string, shadow bool, opts ...WhitespaceOption) string
- func PlaceOverlayWithPosition(position OverlayPosition, fullWidth, fullHeight int, fg, bg string, ...) string
- func ShowReportTUI(r report.ScanReport, colorSchemeName string) error
- type Keybinding
- type Model
- type OverlayPosition
- type WhitespaceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLines ¶ added in v1.3.1
GetLines Split a string into lines, additionally returning the size of the widest line.
func PlaceOverlay ¶ added in v1.3.1
func PlaceOverlay( x, y int, fg, bg string, shadow bool, opts ...WhitespaceOption, ) string
PlaceOverlay places fg on top of bg.
func PlaceOverlayWithPosition ¶ added in v1.3.1
func PlaceOverlayWithPosition( position OverlayPosition, fullWidth, fullHeight int, fg, bg string, shadow bool, opts ...WhitespaceOption, ) string
PlaceOverlayWithPosition places fg on top of bg with overlay position
func ShowReportTUI ¶
func ShowReportTUI(r report.ScanReport, colorSchemeName string) error
ShowReportTUI runs a Bubble Tea UI that renders the ScanReport in a table.
Types ¶
type Keybinding ¶ added in v1.3.1
type OverlayPosition ¶ added in v1.3.1
type OverlayPosition string
const ( OverlayPositionCenter OverlayPosition = "center" OverlayPositionTopRight OverlayPosition = "topRight" OverlayPositionTopLeft OverlayPosition = "topLeft" OverlayPositionBottomRight OverlayPosition = "bottomright" )
type WhitespaceOption ¶ added in v1.3.1
type WhitespaceOption func(*whitespace)
WhitespaceOption sets a styling rule for rendering whitespace.
func WithWhitespaceChars ¶ added in v1.3.1
func WithWhitespaceChars(s string) WhitespaceOption
WithWhitespaceChars sets the characters to be rendered in the whitespace.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package alerts handles showing alerts over the ui with auto-disappear functionality
|
Package alerts handles showing alerts over the ui with auto-disappear functionality |
|
Package repostable is a Model that renders git repo states in a table.
|
Package repostable is a Model that renders git repo states in a table. |
|
Package repostableheader is a Model for repos table.
|
Package repostableheader is a Model for repos table. |
Click to show internal directories.
Click to hide internal directories.