ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(auth auth.Auth)

Start the application and show the user interface

Types

type Model

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

The ui model is at the root of the application. It is responsible for managing different views and rendering the header and help.

func InitialModel

func InitialModel(auth auth.Auth) Model

Get a new ui model

func (Model) Init

func (m Model) Init() tea.Cmd

Initialize ui model

func (Model) Update

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

Update ui model

func (Model) View

func (m Model) View() string

View ui model

type ViewIdx

type ViewIdx int

Jump to

Keyboard shortcuts

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