app

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewControls added in v1.3.0

func NewControls(isFirst, isLast bool) container.Collection

Types

type App

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

func New

func New(backend Backend, enable_debug bool) App

func (App) Init

func (a App) Init() tea.Cmd

func (App) NextState

func (a App) NextState() App

func (App) PrevState

func (a App) PrevState() App

func (App) Update

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() string

type AppState

type AppState = string

type Backend

type Backend struct {
	States       []AppState
	Constructors map[AppState]Constructor
	Updaters     map[AppState]Updater
	Finalizer    func(map[AppState]Window) Window
}

type Constructor

type Constructor = (func(Window) Window)

type Updater added in v1.3.0

type Updater = (func(Window, tea.Msg) (Window, tea.Cmd))

type Window added in v1.3.0

type Window = container.Collection

Jump to

Keyboard shortcuts

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