tui

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *config.Config, rootPath string) error

Run запускает TUI

Types

type DirEntry

type DirEntry struct {
	types.Entry
	// contains filtered or unexported fields
}

DirEntry — элемент списка для Bubble Tea

func (DirEntry) Description

func (d DirEntry) Description() string

func (DirEntry) FilterValue

func (d DirEntry) FilterValue() string

func (DirEntry) Title

func (d DirEntry) Title() string

type Model

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

Model — основная модель TUI

func NewModel

func NewModel(ctx context.Context, cfg *config.Config, rootPath string) (Model, error)

NewModel создаёт новую модель TUI

func (Model) Init

func (m Model) Init() tea.Cmd

Init инициализация модели

func (Model) Update

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

Update обработка событий

func (Model) View

func (m Model) View() string

View рендеринг интерфейса

Jump to

Keyboard shortcuts

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