section

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Categories

func Categories(sets []Setting) []string

func Settings

func Settings(cat string, sets []Setting) []string

Types

type Model

type Model struct {
	Width    int
	Height   int
	Settings []Setting
	CatIndex int
	SetIndex int
	// contains filtered or unexported fields
}

func New

func New(state *commit.State) Model

func ToModel

func ToModel(m tea.Model, c tea.Cmd) (Model, tea.Cmd)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Next

func (m *Model) Next()

func (*Model) Previous

func (m *Model) Previous()

func (*Model) Reset

func (m *Model) Reset()

func (Model) SelectedCategory

func (m Model) SelectedCategory() string

func (Model) SelectedSetting

func (m Model) SelectedSetting() string

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Setting

type Setting struct {
	Name     string
	Category string
}

type Styles

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

Jump to

Keyboard shortcuts

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