browser

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser struct {
	*tview.Frame
	// contains filtered or unexported fields
}

func New

func New() *Browser

func (*Browser) AddAt

func (VB *Browser) AddAt(target *tview.TreeNode, path string)

func (*Browser) AddSourceConfig

func (B *Browser) AddSourceConfig(source *helpers.SourceConfig)

func (*Browser) BuildStatusString

func (VB *Browser) BuildStatusString() string

func (*Browser) ClearSourceConfigs

func (B *Browser) ClearSourceConfigs()

func (*Browser) Decode

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

func (*Browser) Encode

func (W *Browser) Encode() (map[string]any, error)

func (*Browser) FlowAddAt

func (VB *Browser) FlowAddAt(target *tview.TreeNode, path string)

func (*Browser) FlowValueAddAt

func (VB *Browser) FlowValueAddAt(target *tview.TreeNode, value cue.Value, fpath, path string)

func (*Browser) Focus

func (VB *Browser) Focus(delegate func(p tview.Primitive))

func (*Browser) GetFlow

func (VB *Browser) GetFlow() *flow.Flow

func (*Browser) GetMode

func (VB *Browser) GetMode() string

func (*Browser) GetSourceConfigs

func (B *Browser) GetSourceConfigs() (sources []*helpers.SourceConfig)

func (*Browser) GetText

func (VB *Browser) GetText() string

func (*Browser) GetUsingScope

func (VB *Browser) GetUsingScope() bool

func (*Browser) GetValue

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

func (*Browser) GetValueExpr

func (VB *Browser) GetValueExpr(expr string) func() cue.Value

func (*Browser) GetValueText

func (C *Browser) GetValueText(mode string) (string, error)

func (*Browser) HandleAction

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

implementation of widget.ActionHandler interface

func (*Browser) Options

func (VB *Browser) Options() []cue.Option

func (*Browser) Rebuild

func (C *Browser) Rebuild()

func (*Browser) RebuildValue

func (C *Browser) RebuildValue()

func (*Browser) RemoveSourceConfig

func (B *Browser) RemoveSourceConfig(index int)

func (*Browser) SetFlow

func (VB *Browser) SetFlow(flow *flow.Flow)

func (*Browser) SetMode

func (VB *Browser) SetMode(mode string)

func (*Browser) SetSourceConfig

func (B *Browser) SetSourceConfig(index int, source *helpers.SourceConfig)

func (*Browser) SetThinking

func (C *Browser) SetThinking(thinking bool)

func (*Browser) SetUsingScope

func (VB *Browser) SetUsingScope(usingScope bool)

func (*Browser) SetValue

func (C *Browser) SetValue(v cue.Value)

func (*Browser) SetWatchCallback

func (C *Browser) SetWatchCallback(callback func())

func (*Browser) SetupKeybinds

func (VB *Browser) SetupKeybinds()

func (*Browser) TypeName

func (*Browser) TypeName() string

type HandlerFunc

type HandlerFunc func(B *Browser, action string, args []string, context map[string]any) (handled bool, err error)

local handler type

Jump to

Keyboard shortcuts

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