types

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultItemStyles

type DefaultItemStyles struct {
	// The Normal state.
	NormalTitle lipgloss.Style
	NormalDesc  lipgloss.Style

	// The selected item state.
	SelectedTitle lipgloss.Style
	SelectedDesc  lipgloss.Style

	// The dimmed state, for when the filter input is initially activated.
	DimmedTitle lipgloss.Style
	DimmedDesc  lipgloss.Style

	// Characters matching the current filter, if any.
	FilterMatch lipgloss.Style
	Checked     lipgloss.Style
}

type ProfileItem

type ProfileItem struct {
	ItemTitle           string
	ItemDescription     string
	IsValid             bool
	Path                string
	Shell               string
	Name                string
	ShellVersion        string
	IsValidPath         bool
	IsValidShellVersion bool
	IsValidDescription  bool
	IsSelected          bool
}

ProfileItem represents a profile item in the list

func (ProfileItem) Description

func (p ProfileItem) Description() string

func (ProfileItem) FilterValue

func (p ProfileItem) FilterValue() string

func (ProfileItem) GetDescription

func (p ProfileItem) GetDescription() string

func (ProfileItem) GetIsValidDescription

func (p ProfileItem) GetIsValidDescription() bool

func (ProfileItem) GetIsValidPath

func (p ProfileItem) GetIsValidPath() bool

func (ProfileItem) GetIsValidShellVersion

func (p ProfileItem) GetIsValidShellVersion() bool

func (ProfileItem) GetName

func (p ProfileItem) GetName() string

func (ProfileItem) GetPath

func (p ProfileItem) GetPath() string

func (ProfileItem) GetShell

func (p ProfileItem) GetShell() string

func (ProfileItem) IsSelectedProfile

func (p ProfileItem) IsSelectedProfile() bool

func (ProfileItem) IsValidProfile

func (p ProfileItem) IsValidProfile() bool

func (ProfileItem) Title

func (p ProfileItem) Title() string

type ShellItem

type ShellItem struct {
	ItemTitle       string
	Name            string
	Path            string
	ItemDescription string
	ShortName       string
	ShortNames      []string
	ProfilePaths    []string
	IsSelected      bool
}

func (ShellItem) Description

func (m ShellItem) Description() string

func (ShellItem) FilterValue

func (m ShellItem) FilterValue() string

func (ShellItem) GetName

func (m ShellItem) GetName() string

Implement the list.Item interface for ShellItem

func (ShellItem) GetPath

func (m ShellItem) GetPath() string

func (ShellItem) GetShortName

func (m ShellItem) GetShortName() string

func (ShellItem) GetShortNames

func (m ShellItem) GetShortNames() []string

func (ShellItem) IsSelectedShell

func (m ShellItem) IsSelectedShell() bool

func (ShellItem) Title

func (m ShellItem) Title() string

Jump to

Keyboard shortcuts

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