settings

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package settings is the dashboard's configuration view: it shows where the active config came from and what it resolved to, offers a manual reload, and watches the file (on the shared refresh heartbeat) so edits hot-apply without restarting the TUI. Theme and credentials still need a restart — the theme applies once per process and auth requires a new client.

Index

Constants

View Source
const ID core.SectionID = "settings"

ID is the section identifier.

Variables

This section is empty.

Functions

func New

func New(ctx *core.ProgramContext) core.Section

New builds the settings section.

Types

type Model

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

Model is the settings section. It holds no config copy of its own — it renders straight from the shared context, so a hot-reload elsewhere is reflected on the next frame.

func (*Model) CapturesInput

func (m *Model) CapturesInput() bool

CapturesInput: the settings view has no text input.

func (*Model) HelpBindings

func (m *Model) HelpBindings() []key.Binding

HelpBindings lists the section's contextual bindings.

func (*Model) ID

func (m *Model) ID() core.SectionID

func (*Model) Init

func (m *Model) Init(ctx *core.ProgramContext) tea.Cmd

Init records the config file's current mtime as the auto-reload baseline.

func (*Model) Title

func (m *Model) Title() string

func (*Model) Update

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

Update handles the reload key, the heartbeat poll, and the reload echo.

func (*Model) View

func (m *Model) View() string

View renders the resolved configuration as labeled rows.

Jump to

Keyboard shortcuts

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