tui

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct{}

func (*Cmd) Run

func (c *Cmd) Run(log zerolog.Logger, m *mir.Mir, cfg Config) error

type Config added in v0.3.1

type Config struct {
	LogLevel string
	Target   string
}

func NewConfig added in v0.3.1

func NewConfig(logLevel string, mirUrl string) Config

type MirTeaModel

type MirTeaModel interface {
	InitWithData(d any) tea.Cmd
	tea.Model
}

type Model

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

func NewModel

func NewModel(ctx context.Context, log zerolog.Logger, m *mir.Mir, cfg 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

Jump to

Keyboard shortcuts

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