ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCanceled = errors.New("selection canceled")

Functions

func SelectUpdates

func SelectUpdates(ctx context.Context, modules []module.Module, pageSize int, in io.Reader, out io.Writer) ([]module.Module, error)

Types

type SelectorModel

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

func NewSelectorModel

func NewSelectorModel(modules []module.Module, pageSize int) SelectorModel

func (SelectorModel) Canceled

func (m SelectorModel) Canceled() bool

func (SelectorModel) Confirmed

func (m SelectorModel) Confirmed() bool

func (SelectorModel) Cursor

func (m SelectorModel) Cursor() int

func (SelectorModel) Init

func (m SelectorModel) Init() tea.Cmd

func (SelectorModel) Offset

func (m SelectorModel) Offset() int

func (SelectorModel) SelectedModules

func (m SelectorModel) SelectedModules() []module.Module

func (SelectorModel) Update

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

func (SelectorModel) View

func (m SelectorModel) View() tea.View

Jump to

Keyboard shortcuts

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