stack_select

package
v1.43.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Prompt    string
	StackList []list.ListItem
}

type Model

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

Model - represents the state of the stack selection list

func New

func New(args Args) Model

func (Model) Choice

func (m Model) Choice() string

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model, used by Bubbletea

func (Model) Update

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

Update the model based on a message

func (Model) View

func (m Model) View() string

type StackListItem

type StackListItem struct {
	Name     string
	Provider string
}

func (StackListItem) GetItemDescription

func (s StackListItem) GetItemDescription() string

func (StackListItem) GetItemValue

func (s StackListItem) GetItemValue() string

Jump to

Keyboard shortcuts

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