listprompt

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListPrompt

type ListPrompt struct {
	Prompt string

	Tag string
	// contains filtered or unexported fields
}

func NewListPrompt

func NewListPrompt(args ListPromptArgs) ListPrompt

func (ListPrompt) Choice

func (m ListPrompt) Choice() string

func (ListPrompt) Init

func (m ListPrompt) Init() tea.Cmd

func (ListPrompt) IsComplete

func (m ListPrompt) IsComplete() bool

func (*ListPrompt) SetChoice

func (m *ListPrompt) SetChoice(choice string)

func (ListPrompt) Update

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

func (ListPrompt) UpdateItems

func (m ListPrompt) UpdateItems(items []list.ListItem) ListPrompt

func (ListPrompt) UpdateListPrompt

func (m ListPrompt) UpdateListPrompt(msg tea.Msg) (ListPrompt, tea.Cmd)

func (ListPrompt) View

func (m ListPrompt) View() string

type ListPromptArgs

type ListPromptArgs struct {
	MaxDisplayedItems int
	Items             []list.ListItem
	Prompt            string
	Tag               string
}

Jump to

Keyboard shortcuts

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