ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package ui is the Bubble Tea terminal interface of spotui.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	ConfigFile  string
	LogFile     string
	RedirectURL string
	CoverArt    string // "auto", "kitty", "blocks", or "off"
}

Info holds settings, paths, and URLs the interface needs.

type Model

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

Model is the root Bubble Tea model.

func New

func New(ctx context.Context, eng *engine.Engine, web *webapi.Client, info Info) *Model

New creates the root model.

func (*Model) Init

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

func (*Model) Update

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

Update handles msg, then fetches or sends the cover art the next frame needs.

func (*Model) View

func (m *Model) View() tea.View

Jump to

Keyboard shortcuts

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