common

package
v0.0.0-...-0ca590b Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIErrorMode = iota
	TUIErrorMode
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorMsg

type ErrorMsg struct {
	Error error
	Mode  int
}

type Model

type Model struct {
	Input, Output string
	ProgramPath   string

	Group     *group.Model
	Help      *help.Model
	StatusBar *statusbar.Model
	Spinner   spinner.Model
	Document  *layout.Layout

	State    int
	StateFmt map[int][]string

	Error error
}

func (*Model) HandleWindowSize

func (m *Model) HandleWindowSize(msg tea.WindowSizeMsg)

func (*Model) Init

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

func (*Model) UpdateSpinner

func (m *Model) UpdateSpinner(state int, msg tea.Msg) tea.Cmd

func (*Model) UpdateState

func (m *Model) UpdateState(state int, args [3][]any)

func (*Model) View

func (m *Model) View() string

View renders the application UI.

Jump to

Keyboard shortcuts

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