tui

package
v0.0.0-...-d4b0896 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTea

func StartTea(db *internal.JSONDatabase)

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

Types

type MainModel

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

func NewMainModel

func NewMainModel(db *internal.JSONDatabase) MainModel

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

Init run any intial IO on program start

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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