Documentation ¶
Index ¶
- func GenerateList(items []list.Item, renderFunc ListRenderFunc, width int, height int, ...) list.Model
- func Run(debugFlag bool, maggiRespository *data.MaggiRepository) error
- type DetailDoneMsg
- type DetailPage
- type DetailStartMsg
- type GenericTurner
- type IssueMsg
- type IssuePage
- type ListItemDelegate
- type ListRenderFunc
- type MaggiModel
- type Page
- type PageTurner
- type ProfileDoneMsg
- type ProfilePage
- type ProfileStartMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateList ¶
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) 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 IssuePage ¶
type IssuePage struct {
// contains filtered or unexported fields
}
func NewIssuePage ¶
func (*IssuePage) UpdateSize ¶
type ListItemDelegate ¶
type ListItemDelegate struct {
RenderFunc ListRenderFunc
}
func (ListItemDelegate) Height ¶
func (i ListItemDelegate) Height() int
func (ListItemDelegate) Spacing ¶
func (i ListItemDelegate) Spacing() int
type ListRenderFunc ¶
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) View ¶
func (m *MaggiModel) View() string
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) UpdateSize ¶
func (p *ProfilePage) UpdateSize(width, height int)
func (*ProfilePage) View ¶
func (p *ProfilePage) View() string
type ProfileStartMsg ¶
type ProfileStartMsg struct{}
Click to show internal directories.
Click to hide internal directories.