tui

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EditingIndexAddNew = -2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	config.Connection
}
var ChosenConnectionGlobal *Item

func (Item) Description

func (i Item) Description() string

func (Item) FilterValue

func (i Item) FilterValue() string

func (Item) Title

func (i Item) Title() string

type Model

type Model struct {
	List           list.Model
	IsEditing      bool
	EditNameInput  textinput.Model
	EditKeyInput   textinput.Model
	EditTagsInput  textinput.Model
	EditingIndex   int
	EditFocusIndex int

	StatusMessage        string
	StatusType           StatusMessageType
	IsConfirmingDelete   bool
	DeleteIndex          int
	DeleteConnectionName string
	// contains filtered or unexported fields
}

func NewModel

func NewModel(cfg config.Config) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type StatusMessageType

type StatusMessageType int
const (
	StatusNone StatusMessageType = iota
	StatusSuccess
	StatusError
)

Jump to

Keyboard shortcuts

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