ui

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

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

UI is the main UI model.

func New

func New(c common.Common, initialRepo string) *UI

New returns a new UI model.

func (*UI) FullHelp

func (ui *UI) FullHelp() [][]key.Binding

FullHelp implements help.KeyMap.

func (*UI) Init

func (ui *UI) Init() tea.Cmd

Init implements tea.Model.

func (*UI) IsFiltering

func (ui *UI) IsFiltering() bool

IsFiltering returns true if the selection page is filtering.

func (*UI) SetSize

func (ui *UI) SetSize(width, height int)

SetSize implements common.Component.

func (*UI) ShortHelp

func (ui *UI) ShortHelp() []key.Binding

ShortHelp implements help.KeyMap.

func (*UI) Update

func (ui *UI) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (*UI) View

func (ui *UI) View() string

View implements tea.Model.

Directories

Path Synopsis
components
pages

Jump to

Keyboard shortcuts

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