Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryDiffView ¶
type BinaryDiffView struct {
Diff *compare.BinaryDiff
Width int
}
BinaryDiffView renders symbol and section changes with a summary.
func (BinaryDiffView) CopyableText ¶
func (v BinaryDiffView) CopyableText() string
func (BinaryDiffView) Render ¶
func (v BinaryDiffView) Render() string
type DirSummaryView ¶
type DirSummaryView struct {
Summary *compare.DirSummary
Width int
}
DirSummaryView renders aggregate statistics for a directory.
func (DirSummaryView) CopyableText ¶
func (v DirSummaryView) CopyableText() string
func (DirSummaryView) Render ¶
func (v DirSummaryView) Render() string
type ErrorView ¶
ErrorView renders a structured error display for a failed detail load.
func (ErrorView) CopyableText ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root TUI model.
type NodeHeaderView ¶
NodeHeaderView renders the file info header used at the top of all detail views.
func (NodeHeaderView) CopyableText ¶
func (v NodeHeaderView) CopyableText() string
func (NodeHeaderView) Render ¶
func (v NodeHeaderView) Render() string
type PlistDiffView ¶
PlistDiffView renders plist key-path changes.
func (PlistDiffView) CopyableText ¶
func (v PlistDiffView) CopyableText() string
func (PlistDiffView) Render ¶
func (v PlistDiffView) Render() string
type SummaryBarView ¶
SummaryBarView renders the aggregate diff statistics bar.
func (SummaryBarView) Render ¶
func (v SummaryBarView) Render() string
type TextDiffView ¶
TextDiffView renders a text unified diff with colored lines.
func (TextDiffView) CopyableText ¶
func (v TextDiffView) CopyableText() string
func (TextDiffView) Render ¶
func (v TextDiffView) Render() string
type View ¶
type View interface {
// Render returns styled terminal output.
Render() string
// CopyableText returns a plain-text representation for clipboard export.
CopyableText() string
}
View is a pure rendering component that takes props via struct fields and produces styled output. Views have no state or input handling.
Three-tier component model:
- tea.Model: stateful components with input handling (treeModel, detailModel)
- View: pure render components (NodeHeaderView, TextDiffView, etc.)
- primitives: small building blocks (section, field, divider)
Click to show internal directories.
Click to hide internal directories.