tui

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitialList

func InitialList() (model, tea.Cmd)

func StartTea

func StartTea(tr text.GormRepository) error

StartTea the entry point for the UI. Initializes the model.

Types

type Item

type Item struct {
	*text.Text
}

Itemはlist.Itemインターフェースを実装するためのラッパー

func (Item) FilterValue

func (l Item) FilterValue() string

type Register

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

--------------------------------------------------------------- Model ---------------------------------------------------------------

func InitialRegister

func InitialRegister(text *text.Text) Register

func (Register) Init

func (m Register) Init() tea.Cmd

直接Updateから呼び出すので実際使われることはない

func (Register) Update

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

--------------------------------------------------------------- Update ---------------------------------------------------------------

func (Register) View

func (m Register) View() string

-------------------------------------------------------------------------------- View --------------------------------------------------------------------------------

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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