cmd

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg struct {
	Name  string
	Value interface{}
}

type CallType

type CallType int8
const (
	WinOpen CallType = iota
	WinClose
	WinFocus
	WinBlur
	WinRefreshData
	WinFreshData

	ViewOpen
	ViewFocus
	ViewBlur
	ViewRefreshData
	ViewFreshData

	MsgError

	WMCloseWin
)

type Command

type Command struct {
	Call   CallType
	Target string
	Args   map[string]interface{}
}

func New

func New(
	call CallType,
	target string,
	args ...Arg,
) *Command

func (*Command) AddArg

func (cmd *Command) AddArg(name string, value interface{})

func (*Command) GetArg

func (cmd *Command) GetArg(name string) interface{}

func (*Command) GetArgs

func (cmd *Command) GetArgs() []Arg

func (*Command) Tea

func (cmd *Command) Tea() tea.Cmd

Jump to

Keyboard shortcuts

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