ui

package
v0.0.0-...-972cc5a Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SingleOptionHelp

func SingleOptionHelp(k, v string) string

Types

type InitialModel

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

InitialModel is the UI when the CLI starts, basically loading the DNS servers.

func NewInitialModel

func NewInitialModel(dnsServers chgdns.DnsServers) InitialModel

NewInitialModel creates a new InitialModel with required fields.

func (InitialModel) Init

func (m InitialModel) Init() tea.Cmd

func (InitialModel) Update

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

func (InitialModel) View

func (m InitialModel) View() string

type ListModel

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

ListModel is the UI in which the user can select which forks should be deleted if any, and see details on each oqf them.

func NewListModel

func NewListModel(dnsServers chgdns.DnsServers) ListModel

NewListModel creates a new ListModel with the required fields.

func (ListModel) Init

func (m ListModel) Init() tea.Cmd

Init initializes the CLI.

func (ListModel) Update

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

func (ListModel) View

func (m ListModel) View() string

Jump to

Keyboard shortcuts

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