utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 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(a Actor) tea.Cmd

func CheckCmd

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

func DebugCmd

func DebugCmd(msg string) tea.Cmd

Types

type Actor added in v1.0.0

type Actor interface {
	Action() tea.Msg
}

actions & messages

type ButtonType

type ButtonType int

button types

const (
	SimpleBtn ButtonType = iota
	AcceptBtn
	ControlBtn
)

type DebugMsg

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

func (DebugMsg) String

func (dbg DebugMsg) String() string

type InputType

type InputType int
const (
	PathInput InputType = iota
	TextInput
)

type Messenger added in v1.0.0

type Messenger interface {
	Message() string
}

type NextStateMsg

type NextStateMsg struct{}

messages

type PrevStateMsg

type PrevStateMsg struct{}

type State added in v1.0.0

type State interface {
	Label() string
	Next() State
	Prev() State
}

window states

Jump to

Keyboard shortcuts

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