ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Panel borders
	BorderStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("240"))

	FocusedBorderStyle = lipgloss.NewStyle().
						Border(lipgloss.RoundedBorder()).
						BorderForeground(lipgloss.Color("62"))

	// Service list
	GroupHeaderStyle = lipgloss.NewStyle().
						Bold(true).
						Foreground(lipgloss.Color("254"))

	CursorStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(lipgloss.Color("86"))

	ServiceNameStyle = lipgloss.NewStyle().
						Foreground(lipgloss.Color("252"))

	PortStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("240"))

	// Status bar
	StatusBarStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("240")).
					Padding(0, 1)

	// Help overlay
	HelpKeyStyle = lipgloss.NewStyle().
					Bold(true).
					Foreground(lipgloss.Color("86"))

	HelpDescStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("240"))
)

Functions

func StateColor

func StateColor(s service.State) color.Color

Types

type FocusPanel

type FocusPanel int
const (
	PanelServiceList FocusPanel = iota
	PanelLogs
)

type GroupInfo

type GroupInfo struct {
	Name       string
	StartIndex int
	Count      int
	Collapsed  bool
}

type KeyMap

type KeyMap struct {
	Up         key.Binding
	Down       key.Binding
	PageUp     key.Binding
	PageDown   key.Binding
	Home       key.Binding
	End        key.Binding
	Toggle     key.Binding
	Tab        key.Binding
	StartGroup key.Binding
	StopGroup  key.Binding
	StartAll   key.Binding
	StopAll    key.Binding
	Build      key.Binding
	StopDocker key.Binding
	Rebuild    key.Binding
	Follow     key.Binding
	OpenPager  key.Binding
	Help       key.Binding
	Detach     key.Binding
	Quit       key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Model

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

func NewModel

func NewModel(cfg *config.Config) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) SetProgram

func (m Model) SetProgram(p *tea.Program)

SetProgram passes the tea.Program to the manager for async message sending.

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