live

package
v0.0.0-...-73c8340 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutocompleteModal

type AutocompleteModal interface {
	Modal
	SetScriptExecFunc(func(s *script.ExecutableScript))
}

AutocompleteModal is a modal for autocomplete.

type Cmd

type Cmd struct {
	TabStops []*TabStop `parser:"(\"$\" @@)*"`
}

Cmd represents the formatted cmd parsed into tabstops.

func ParseInput

func ParseInput(input string) (*Cmd, error)

ParseInput parses the user input into a command using an ebnf parser.

type Modal interface {
	Show(a *tview.Application) tview.Primitive
	Close(a *tview.Application)
}

Modal is the interface for a pop-up view.

type TabStop

type TabStop struct {
	Index    *int    `parser:"(\"{\" @Ident )"`
	Label    *string `parser:"(\":\" @Ident )?"`
	HasLabel bool    `parser:"@\":\"?"`
	Value    *string `parser:"((@Ident)? \"}\")?"`
}

TabStop represents the fields where the user's should go when tabbing.

type View

type View struct {
	// contains filtered or unexported fields
}

View is the top level of the Live View.

func New

func New(br *script.BundleManager, viziers []*vizier.Connector, cloudAddr string, aClient cloudpb.AutocompleteServiceClient,
	execScript *script.ExecutableScript, useNewAC, useEncryption bool, clusterID uuid.UUID) (*View, error)

New creates a new live view.

func (*View) Run

func (v *View) Run() error

Run runs the view.

func (*View) Stop

func (v *View) Stop()

Stop stops the view and kills the app.

Jump to

Keyboard shortcuts

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