eval

package
v0.6.9-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const EvalHelpText = `` /* 3077-byte string literal not displayed */

Variables

This section is empty.

Functions

func New

func New() connector.Connector

Types

type Eval

type Eval struct {
	*panel.Panel
	// contains filtered or unexported fields
}

func EvalDecodeMap

func EvalDecodeMap(data map[string]any) (*Eval, error)

func NewEval

func NewEval() *Eval

func (*Eval) CommandCallback

func (M *Eval) CommandCallback(context map[string]any)

CommandCallback is invoked when the user runs your module your goal is to enrich the context with the args return the object you want in Refresh

func (*Eval) CommandHelp

func (M *Eval) CommandHelp() string

func (*Eval) CommandName

func (M *Eval) CommandName() string

func (*Eval) CommandUsage

func (M *Eval) CommandUsage() string

func (*Eval) EncodeMap

func (M *Eval) EncodeMap() (map[string]any, error)

func (*Eval) Focus

func (M *Eval) Focus(delegate func(p tview.Primitive))

func (*Eval) HotKey

func (M *Eval) HotKey() string

func (*Eval) Id

func (M *Eval) Id() string

func (*Eval) ListEval

func (M *Eval) ListEval() error

func (*Eval) LoadEval

func (M *Eval) LoadEval(filename string) (*Eval, error)

func (*Eval) Mount

func (M *Eval) Mount(context map[string]any) error

func (*Eval) Name

func (M *Eval) Name() string

func (*Eval) Refresh

func (M *Eval) Refresh(context map[string]any) error

this is basically the entryp point

func (*Eval) Routes

func (M *Eval) Routes() []router.RoutePair

func (*Eval) Save

func (M *Eval) Save(filename string) error

func (*Eval) ShowEval

func (M *Eval) ShowEval(filename string) (*Eval, error)

func (*Eval) Unmount

func (M *Eval) Unmount() error

Jump to

Keyboard shortcuts

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