eval

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const EvalHelpText = `` /* 12707-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(input 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) HandleAction

func (M *Eval) HandleAction(action string, args []string, context map[string]any) (bool, error)

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(source 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) Save

func (M *Eval) Save(destination string, preview bool) 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