ui

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package ui - contains UI iteraction code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start added in v1.1.0

func Start(ctx context.Context, storage storage.HostStorage, appState *state.State) error

Start - starts UI subsystem of the application. *state.ApplicationState should be substituted with interface type which would have getters and setters for appropriate fields, without doing it it's hard to use mock objects in unit tests of the child components. Search for 'MockAppState'.

Types

type MainModel added in v1.5.0

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

func New added in v1.1.0

func New(
	ctx context.Context,
	storage storage.HostStorage,
	appState *state.State,
	log iLogger,
) MainModel

New - creates a parent module for other component and preserves state which can be propagated to other subcomponents.

func (*MainModel) Init added in v1.5.0

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

func (*MainModel) Update added in v1.5.0

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

func (*MainModel) View added in v1.5.0

func (m *MainModel) View() string

Directories

Path Synopsis
component
grouplist
Package grouplist implements the group list view.
Package grouplist implements the group list view.
hostedit
Package hostedit contains UI components for editing host model attributes.
Package hostedit contains UI components for editing host model attributes.
hostlist
Package hostlist implements the host list view.
Package hostlist implements the host list view.
input
Package input implements generic UI input component.
Package input implements generic UI input component.
Package message contains shared messages which are used to communicate between bubbletea components
Package message contains shared messages which are used to communicate between bubbletea components
Package theme provides centralized styling and theming functionality
Package theme provides centralized styling and theming functionality

Jump to

Keyboard shortcuts

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