configeditor

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupItem

type LookupItem struct {
	Value   string // stored value (e.g. "1")
	Display string // shown in picker list (e.g. "Local Conferences (LOCAL)")
}

LookupItem represents a selectable item in a lookup picker.

type Model

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

Model is the BubbleTea model for the config editor TUI.

func New

func New(configPath string) (Model, error)

New creates a new config editor model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model.

func (Model) Update

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

Update implements tea.Model.

func (Model) View

func (m Model) View() string

View implements tea.Model.

func (Model) WithStartupMessage added in v0.5.0

func (m Model) WithStartupMessage(msg string) Model

WithStartupMessage sets the initial status-line message shown when the editor opens (e.g. "binkd.conf was missing - regenerated"). Opt-in like WithStartupSplash; cmd/config/main.go uses it for startup notices.

func (Model) WithStartupSplash added in v0.2.0

func (m Model) WithStartupSplash() Model

WithStartupSplash enables the ~2s startup art splash. Opt-in so tests that build via New are unaffected; cmd/config/main.go calls it for the real TUI.

Jump to

Keyboard shortcuts

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