tui

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLongAnswerField

func NewLongAnswerField() *longAnswerField

func NewShortAnswerField

func NewShortAnswerField() *shortAnswerField

Types

type InitPromptModel

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

InitPromptModel is a model for the init prompt

func InitialInitModel

func InitialInitModel(exists bool) InitPromptModel

InitialInitModel returns an initial model for the init prompt

func (InitPromptModel) Init

func (m InitPromptModel) Init() tea.Cmd

Init returns a command for the init prompt

func (*InitPromptModel) Next

func (m *InitPromptModel) Next()

Next increments the index of the init prompt

func (InitPromptModel) Update

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

Update updates the init prompt model

func (InitPromptModel) View

func (m InitPromptModel) View() string

View returns a string for the init prompt

type InitQuestion

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

InitQuestion is a question for the init prompt

type Input

type Input interface {
	Blink() tea.Msg
	Blur() tea.Msg
	Focus() tea.Cmd
	SetValue(string)
	Value() string
	Update(tea.Msg) (Input, tea.Cmd)
	View() string
}

Jump to

Keyboard shortcuts

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