ui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package ui contains a Bubbletea model that wraps other models like history.Model and input.Model, as well as the *smoke.Smoke struct that contains and modifies application state. It is the main model for the application, executed as part of the main() function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func New

func New(opts *Opts) (*Model, error)

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

type Opts

type Opts struct {
	Smoke *smoke.Smoke
}

func (*Opts) OK

func (o *Opts) OK() error

Jump to

Keyboard shortcuts

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