tui

package
v0.0.0-...-a53e0fd Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMail

func InitMail(ar repo.Accounts, er repo.Emails) tea.Model

func StartTea

func StartTea(cfg configdef.Values, ar repo.Accounts, er repo.Emails)

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

Types

type Model

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

func (*Model) Init

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

Init run any intial IO on program start

func (*Model) Update

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

Update handle IO and commands

func (Model) View

func (m Model) View() string

View return the text UI to be output to the terminal

Jump to

Keyboard shortcuts

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