tui

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TitleStyle        = style.Bold(true)
	SubtleStyle       = style.Faint(true)
	HeaderStyle       = style.Foreground(lipgloss.Color("63")).Bold(true)
	HeaderWithBGStyle = style.Foreground(lipgloss.Color("229")).Background(lipgloss.Color("63")).Bold(true)
	RepoStyle         = style.Foreground(lipgloss.Color("7"))
	BranchStyle       = style.Foreground(lipgloss.Color("4"))
	CleanStyle        = style.Foreground(lipgloss.Color("2"))
	DirtyStyle        = style.Foreground(lipgloss.Color("1"))
	FooterStyle       = style.Faint(true)
	SectionStyle      = style.Bold(true).Foreground(lipgloss.Color("5"))
	SelectedStyle     = style.Foreground(lipgloss.Color("0")).Background(lipgloss.Color("12"))
	DimStyle          = lipgloss.NewStyle().
						Background(lipgloss.Color("#1f1f1f")).
						Foreground(lipgloss.Color("#777")) // soft gray
)
View Source
var (
	ReposTableStyle = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(lipgloss.Color("63"))

	ReposFilterStyle = lipgloss.NewStyle().
						Border(lipgloss.RoundedBorder()).
						BorderForeground(lipgloss.Color("62"))
)

table style

View Source
var (
	PopupStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("62")).
				Padding(1, 2).
				Align(lipgloss.Left)

	PopupTitleStyle = lipgloss.
					NewStyle().
					Bold(true).
					Padding(0, 2, 0, 2).
					Italic(true).
					Margin(1)
)

Popup styles

Functions

func ShowReportTUI

func ShowReportTUI(r report.ScanReport) error

ShowReportTUI runs a Bubble Tea UI that renders the ScanReport in a table.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL