utils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(msg tea.Msg) tea.Cmd

func CheckCmd

func CheckCmd(cmd tea.Cmd, want tea.Msg) bool

func DebugCmd

func DebugCmd(msg string) tea.Cmd

Types

type ButtonType

type ButtonType int

button types

const (
	SimpleBtn ButtonType = iota
	AcceptBtn
	ControlBtn
)

type ContainerType

type ContainerType int

container types

const (
	SimpleContainer ContainerType = iota
	VerticalContainer
	HorizontalContainer
)

type DebugMsg

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

messages

func (DebugMsg) String

func (dbg DebugMsg) String() string

type FocusNextMsg

type FocusNextMsg struct{}

type FocusPrevMsg

type FocusPrevMsg struct{}

type InputType

type InputType int
const (
	PathInput InputType = iota
	TextInput
)

type NextStateMsg

type NextStateMsg struct{}

type PrevStateMsg

type PrevStateMsg struct{}

type SubmitMsg

type SubmitMsg struct{}

type TextType

type TextType int

text types

const (
	NormalText TextType = iota
	LabelText
	DimmedText
)

Jump to

Keyboard shortcuts

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