tui

package
v0.0.0-...-3a72003 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoneMsg

type DoneMsg struct{}

Messages

type ErrorMsg

type ErrorMsg struct{ Err error }

Messages

type Model

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

Model is the main TUI model.

func NewModel

func NewModel(eng *engine.Engine, manifest *models.Manifest, cfg *config.Config) *Model

NewModel creates a new TUI model.

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 TrackPicker

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

TrackPicker is a TUI for interactive track selection.

func NewTrackPicker

func NewTrackPicker(tracks []*models.Track) *TrackPicker

NewTrackPicker creates a new track picker TUI.

func (*TrackPicker) Init

func (tp *TrackPicker) Init() tea.Cmd

func (*TrackPicker) Result

func (tp *TrackPicker) Result() TrackPickerResult

Result returns the selected tracks.

func (*TrackPicker) Update

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

func (*TrackPicker) View

func (tp *TrackPicker) View() string

type TrackPickerResult

type TrackPickerResult struct {
	Selected []*models.Track
	Canceled bool
}

TrackPickerResult is returned when track selection is complete.

Jump to

Keyboard shortcuts

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