playground

package
v0.6.10-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const HTTP2_GOAWAY_CHECK = "http2: server sent GOAWAY and closed the connection"

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayMode

type PlayMode string
const (
	ModeEval PlayMode = "eval"
	ModeFlow PlayMode = "flow"
)

type Playground

type Playground struct {
	// *tview.Frame eventually?
	*tview.Flex
	// contains filtered or unexported fields
}

func New

func New(initialText string) *Playground

func (*Playground) Decode

func (C *Playground) Decode(input map[string]any) (widget.Widget, error)

func (*Playground) Encode

func (C *Playground) Encode() (map[string]any, error)

func (*Playground) ExportFinalToFile

func (C *Playground) ExportFinalToFile(filename string) error

func (*Playground) Focus

func (C *Playground) Focus(delegate func(p tview.Primitive))

func (*Playground) GetEditConfig

func (C *Playground) GetEditConfig() *helpers.SourceConfig

func (*Playground) GetSourceConfigs

func (C *Playground) GetSourceConfigs() []*helpers.SourceConfig

func (*Playground) GetValue

func (C *Playground) GetValue() cue.Value

func (*Playground) GetValueExpr

func (C *Playground) GetValueExpr(expr string) func() cue.Value

func (*Playground) HandleAction

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

func (*Playground) Mount

func (C *Playground) Mount(context map[string]any) error

func (*Playground) PushToPlayground

func (C *Playground) PushToPlayground() (string, error)

func (*Playground) Rebuild

func (C *Playground) Rebuild() error

func (*Playground) RebuildEditTitle

func (C *Playground) RebuildEditTitle()

func (*Playground) SetDebounceTime

func (C *Playground) SetDebounceTime(args []string, context map[string]any) error

func (*Playground) SetFlexDirection

func (C *Playground) SetFlexDirection(dir int)

func (*Playground) ToggleShowScope

func (C *Playground) ToggleShowScope()

func (*Playground) TypeName

func (*Playground) TypeName() string

func (*Playground) UseScope

func (C *Playground) UseScope(use bool)

func (*Playground) WriteEditToFile

func (C *Playground) WriteEditToFile(filename string) error

Jump to

Keyboard shortcuts

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