tui

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationMenu

type DestinationMenu struct {
	Menu
	// contains filtered or unexported fields
}

func NewDestinationMenu

func NewDestinationMenu(header string, api *cloudflare.API, zone cloudflare.Zone, parent tea.Model) *DestinationMenu

func (*DestinationMenu) Init

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

func (*DestinationMenu) Update

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

func (*DestinationMenu) View

func (m *DestinationMenu) View() string
type Menu struct {
	Header string
	Items  []MenuItem
	Cursor int
	Parent tea.Model
}
func (m *Menu) Init() tea.Cmd
func (m *Menu) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (m *Menu) View() string
type MenuItem struct {
	Name  string
	Model tea.Model
}
type NavigateBackMsg struct{}

type RandomAddressUI

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

func NewRandomAddressUI

func NewRandomAddressUI(api *cloudflare.API, zone cloudflare.Zone, email string) *RandomAddressUI

func (*RandomAddressUI) Init

func (r *RandomAddressUI) Init() tea.Cmd

func (*RandomAddressUI) Update

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

func (*RandomAddressUI) View

func (r *RandomAddressUI) View() string

type Setup

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

func NewSetup

func NewSetup() *Setup

func (*Setup) Init

func (s *Setup) Init() tea.Cmd

func (*Setup) Update

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

func (*Setup) View

func (s *Setup) View() string

type SetupInitMsg

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

type ZonesMenu

type ZonesMenu struct {
	Menu
	// contains filtered or unexported fields
}

func NewZoneMenu

func NewZoneMenu(header string, api *cloudflare.API, parent tea.Model) *ZonesMenu

func (*ZonesMenu) Init

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

func (*ZonesMenu) Update

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

func (*ZonesMenu) View

func (m *ZonesMenu) View() string

Jump to

Keyboard shortcuts

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