selection

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

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 represents the state of the selection list

func NewModel

func NewModel(stepSchema steps.StepSchema) Model

NewModel creates a new selection model

func (Model) Done

func (m Model) Done() bool

Done returns whether the selection is done

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Selected

func (m Model) Selected() string

Selected returns the selected item

func (Model) StepName

func (m Model) StepName() string

StepName returns the name of the step

func (Model) Update

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

Update handles user input and updates the model

func (Model) View

func (m Model) View() string

View renders the UI

type SelectionItem

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

SelectionItem represents an item in the selection list

func (SelectionItem) Description

func (i SelectionItem) Description() string

func (SelectionItem) FilterValue

func (i SelectionItem) FilterValue() string

func (SelectionItem) Title

func (i SelectionItem) Title() string

Jump to

Keyboard shortcuts

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