tui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HighlightCode

func HighlightCode(code, lang string) string

HighlightCode применяет syntax highlighting к блоку кода. lang — язык (go, python, js и т.д.), может быть пустым. Возвращает строки с ANSI-раскраской, готовые для вывода в терминал.

func Start

func Start(m *Model) error

Start запускает TUI

Types

type Model

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

Model — главная модель BubbleTea

func New

func New(cfg *config.Config, workDir string) (*Model, error)

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

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

Jump to

Keyboard shortcuts

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