dependency

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Id          string
	Name        string
	GroupName   string
	Description string
}

type FilterKeyMap

type FilterKeyMap struct {
	Submit key.Binding
	Cancel key.Binding
}

func (FilterKeyMap) FullHelp

func (k FilterKeyMap) FullHelp() [][]key.Binding

func (FilterKeyMap) ShortHelp

func (k FilterKeyMap) ShortHelp() []key.Binding

type MainKeyMap

type MainKeyMap struct {
	Up                key.Binding
	Down              key.Binding
	PagePrev          key.Binding
	PageNext          key.Binding
	ToggleSelect      key.Binding
	ToggleDescription key.Binding
	Filter            key.Binding
}

func (MainKeyMap) FullHelp

func (k MainKeyMap) FullHelp() [][]key.Binding

func (MainKeyMap) ShortHelp

func (k MainKeyMap) ShortHelp() []key.Binding

type Model

type Model struct {
	Selected map[string]struct{}
	// contains filtered or unexported fields
}

func New

func New(dependencies ...Dependency) Model

func (Model) FullHelp

func (m Model) FullHelp() [][]key.Binding

func (*Model) GetSelectedIds

func (m *Model) GetSelectedIds() []string

func (Model) GetSize

func (m Model) GetSize() (h, v int)

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetSize

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

func (Model) ShortHelp

func (m Model) ShortHelp() []key.Binding

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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