serviceslist

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(services []types.ServiceConfig, width int, height int) tea.Model

New builds the services list.

Types

type Model

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

func (Model) FilterState

func (m Model) FilterState() list.FilterState

FilterState exposes how much of the keyboard the list has taken. Same rule as the groups list - see groupslist.Model.FilterState.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) KeepsEsc

func (m Model) KeepsEsc() bool

KeepsEsc reports whether the list needs esc for itself. Same rule as the groups list - see groupslist.Model.KeepsEsc.

func (Model) OwnsKeyboard

func (m Model) OwnsKeyboard() bool

OwnsKeyboard reports whether the list is taking every keystroke for itself, which it does while a filter is being typed. Same rule as the groups list - see groupslist.Model.OwnsKeyboard.

func (Model) Update

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

func (Model) View

func (m Model) View() tea.View

Jump to

Keyboard shortcuts

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