ui

package
v4.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(dep *c.Dependencies, ctx *c.Context) func() error

Start launches the command line interface and starts capturing input

Types

type Model

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

Model for UI

func NewModel

func NewModel(dep c.Dependencies, ctx c.Context) Model

NewModel is the constructor for UI model

func (Model) Init

func (m Model) Init() tea.Cmd

Init is the initialization hook for bubbletea

func (Model) Update

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

Update hook for bubbletea

func (Model) View

func (m Model) View() string

View rendering hook for bubbletea

Directories

Path Synopsis
component

Jump to

Keyboard shortcuts

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