interactive_pages

package
v0.0.151 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintOnly

func PrintOnly(report *TabbedReport)

func RunInteractivePages

func RunInteractivePages(report *TabbedReport) error

func RunInteractivePagesWithoutPrint

func RunInteractivePagesWithoutPrint(report *TabbedReport) error

Types

type InteractivePage

type InteractivePage = Page

type Page

type Page struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Content tea.Model
}

type ReportPages

type ReportPages = TabbedReport

type ScrollableContent

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

func NewScrollableContent

func NewScrollableContent(content tea.Model) *ScrollableContent

func (*ScrollableContent) Init

func (s *ScrollableContent) Init() tea.Cmd

func (*ScrollableContent) OriginalContent

func (s *ScrollableContent) OriginalContent() string

func (*ScrollableContent) ScrollPercent

func (s *ScrollableContent) ScrollPercent() float64

func (*ScrollableContent) SetDimensions

func (s *ScrollableContent) SetDimensions(width, height int)

func (*ScrollableContent) Update

func (s *ScrollableContent) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ScrollableContent) View

func (s *ScrollableContent) View() string

type TabbedReport

type TabbedReport struct {
	Title    string `json:"title"`
	Subtitle string `json:"subtitle"`
	Helper   string `json:"helper"`
	Pages    []Page `json:"pages"`
	// contains filtered or unexported fields
}

func (*TabbedReport) Init

func (r *TabbedReport) Init() tea.Cmd

func (*TabbedReport) RenderFullContent

func (r *TabbedReport) RenderFullContent() string

func (*TabbedReport) Update

func (r *TabbedReport) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*TabbedReport) View

func (r *TabbedReport) View() string

type WrappedLine

type WrappedLine struct {
	Original     string
	Segments     []string
	SegmentStart int
}

Jump to

Keyboard shortcuts

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