mainui

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() tea.Model

New initialize the projectui model for your program

Types

type Model

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

Model the Menu model definition

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) UpdateWindowSize

func (m Model) UpdateWindowSize(w int, h int) tea.Model

func (Model) View

func (m Model) View() string

View return the text UI to be output to the terminal

type SelectMsg

type SelectMsg struct {
	ActiveMenu uint
}

SelectMenuMsg the message to change the view to the selected entry

Jump to

Keyboard shortcuts

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