hostedit

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: 20 Imported by: 0

Documentation

Overview

Package hostedit contains UI components for editing host model attributes.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ItemID is a key to extract item id from application context.
	ItemID = itemID{}
)

Functions

This section is empty.

Types

type EditModel added in v1.5.0

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

func New

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

New - returns new edit host form.

func (*EditModel) Init added in v1.5.0

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

func (*EditModel) SetTitle added in v1.5.0

func (m *EditModel) SetTitle(title string)

func (*EditModel) Update added in v1.5.0

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

func (*EditModel) View added in v1.5.0

func (m *EditModel) View() string

type MsgSave

type MsgSave struct{}

MsgSave triggers when users saves results.

type Size

type Size struct {
	Width  int
	Height int
}

Size struct is used by terminal resize event.

Jump to

Keyboard shortcuts

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