tui

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package tui holds the interactive checklist. The selection logic lives in Model and is tested headless; Bubble Tea view/update wiring is thin.

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
}

Model is the pure, testable selection state.

func New

func New(items []rules.Item) *Model

New builds a Model over the scanned items.

func (*Model) IsSelected

func (m *Model) IsSelected(i int) bool

IsSelected reports whether the item at index i is currently selected.

func (*Model) Items

func (m *Model) Items() []rules.Item

Items exposes all items (for rendering).

func (*Model) Selected

func (m *Model) Selected() []rules.Item

Selected returns the chosen items.

func (*Model) SelectedBytes

func (m *Model) SelectedBytes() int64

SelectedBytes is the running freed-space total of selected items.

func (*Model) Toggle

func (m *Model) Toggle(i int)

Toggle flips selection for the item at index i. No-op for Keep items.

Jump to

Keyboard shortcuts

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