tui

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKeyMap = keymap{
	// contains filtered or unexported fields
}

Functions

func ConfigModel

func ConfigModel() tea.Model

func DaemonModel

func DaemonModel() tea.Model

func EditConfigModel

func EditConfigModel() tea.Model

func ReportModel

func ReportModel() tea.Model

func ResultModel

func ResultModel() tea.Model

func Run

func Run() error

func SelectConfigModel

func SelectConfigModel() tea.Model

func ValidationEndpointModel

func ValidationEndpointModel() tea.Model

func ValidatorOutputModel

func ValidatorOutputModel() tea.Model

Types

type Model

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

func TuiModule

func TuiModule() Model

TuiModule Creates the initial parent model and sets the rendering interval based on the tui.refresh config value

func (Model) Init

func (m Model) Init() tea.Cmd

Init Initializes the fileWatcher which monitors the daemons state and starts the renderingTrigger

func (Model) Update

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

Update Reacts to given I/O and updates the ui values accordingly. Also triggers rendering for given sup models based on menu choices

func (Model) View

func (m Model) View() string

View Redraws the UI after every Update

Jump to

Keyboard shortcuts

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