ui

package
v0.99.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package ui holds cdnscli UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	ClientTimeout time.Duration
	Config        *config.Config

	ZonesTable table.Model
	RRSetTable table.Model
	TableStyle table.Styles
	ViewStyle  lipgloss.Style
	// contains filtered or unexported fields
}

Model represents model for implements bubbletea.Model interface.

func NewModel

func NewModel() *Model

NewModel creates new Model for UI.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init This command will be executed immediately when the program starts. Implements tea.Model interface.

func (*Model) Update

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

Update Takes a tea.Msg as input and uses a type switch to handle different types of messages. Each case in the switch statement corresponds to a specific message type. Implements tea.Model interface.

func (*Model) View

func (m *Model) View() string

View renders the program's UI, which is just a string. The view is rendered after every Update. Implements tea.Model interface.

Directories

Path Synopsis
Package popup holds cdnscli UI elements for editing.
Package popup holds cdnscli UI elements for editing.
Package theme holds the bubble tea UI settings.
Package theme holds the bubble tea UI settings.

Jump to

Keyboard shortcuts

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