picker

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 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 EditConfigRequestedMsg

type EditConfigRequestedMsg struct{}

EditConfigRequestedMsg is sent when the user wants to edit the config file.

type Model

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

Model is the profile picker component.

func New

func New(profiles []config.Profile, t theme.Theme) Model

New creates a new profile picker from the given profiles, grouped by type.

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

SetSize updates the picker dimensions.

func (Model) Update

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

func (Model) View

func (m Model) View() string

type ProfileSelectedMsg

type ProfileSelectedMsg struct {
	Profile config.Profile
}

ProfileSelectedMsg is sent when the user selects a profile.

Jump to

Keyboard shortcuts

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