tui

package
v0.0.0-...-ecdd4c2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateList

func GenerateList(items []list.Item, renderFunc ListRenderFunc, width int, height int, filtering bool) list.Model

func Run

func Run(debugFlag bool, maggiRespository *data.MaggiRepository) error

Types

type DetailDoneMsg

type DetailDoneMsg struct{}

func (DetailDoneMsg) Next

func (d DetailDoneMsg) Next() pageType

type DetailPage

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

func NewDetailPage

func NewDetailPage(repository detailPageRepository) *DetailPage

func (*DetailPage) Init

func (d *DetailPage) Init() tea.Cmd

func (*DetailPage) Update

func (d *DetailPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*DetailPage) UpdateSize

func (d *DetailPage) UpdateSize(width, height int)

func (*DetailPage) View

func (d *DetailPage) View() string

type DetailStartMsg

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

type GenericTurner

type GenericTurner pageType

func (GenericTurner) Next

func (g GenericTurner) Next() pageType

type IssueMsg

type IssueMsg struct {
	Inner      error
	Message    string
	StackTrace string
}

type IssuePage

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

func NewIssuePage

func NewIssuePage(debugFlag bool) *IssuePage

func (*IssuePage) Init

func (i *IssuePage) Init() tea.Cmd

func (*IssuePage) Update

func (i *IssuePage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*IssuePage) UpdateSize

func (i *IssuePage) UpdateSize(width, height int)

func (*IssuePage) View

func (i *IssuePage) View() string

type ListItemDelegate

type ListItemDelegate struct {
	RenderFunc ListRenderFunc
}

func (ListItemDelegate) Height

func (i ListItemDelegate) Height() int

func (ListItemDelegate) Render

func (i ListItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (ListItemDelegate) Spacing

func (i ListItemDelegate) Spacing() int

func (ListItemDelegate) Update

func (i ListItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type ListRenderFunc

type ListRenderFunc func(list.Item) string

type MaggiModel

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

func NewMaggiModel

func NewMaggiModel(debugFlag bool, maggiRepository tuiRepository) *MaggiModel

func (*MaggiModel) Init

func (m *MaggiModel) Init() tea.Cmd

func (*MaggiModel) Update

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

func (*MaggiModel) View

func (m *MaggiModel) View() string

type Page

type Page interface {
	tea.Model
	UpdateSize(width, height int)
}

type PageTurner

type PageTurner interface {
	Next() pageType
}

type ProfileDoneMsg

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

func (ProfileDoneMsg) Next

func (p ProfileDoneMsg) Next() pageType

type ProfilePage

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

func NewProfilePage

func NewProfilePage(repository profilePageRepository) *ProfilePage

func (*ProfilePage) Init

func (p *ProfilePage) Init() tea.Cmd

func (*ProfilePage) Update

func (p *ProfilePage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ProfilePage) UpdateSize

func (p *ProfilePage) UpdateSize(width, height int)

func (*ProfilePage) View

func (p *ProfilePage) View() string

type ProfileStartMsg

type ProfileStartMsg struct{}

Jump to

Keyboard shortcuts

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