package tui
import "audit2fivew/internal/tui"
Package tui implements the Bubble Tea terminal user interface for audit2fivew, providing a master-detail view of AVC denials.
Index
Types
type Model
type Model struct { // contains filtered or unexported fields }
Model is the top-level Bubble Tea model.
func NewModel
func NewModel(denials []*avc.Denial, s *store.Store, logPath string) Model
NewModel creates a Model pre-loaded with the given denials.
func (Model) Init
func (m Model) Init() tea.Cmd
Init initializes the Bubble Tea runtime. Returns nil as no initial command is needed.
func (Model) Update
func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
Update handles incoming Bubble Tea messages (keys, window resize, async refresh).
func (Model) View
func (m Model) View() string
View renders the master-detail UI including left list, right detail, and footer status bar.