interactive

package
v0.10.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptForMissingVariables

func PromptForMissingVariables(ctx context.Context, missingVariables []*modconfig.Variable) error

func RunInteractivePrompt

func RunInteractivePrompt(initChan *chan *db_common.QueryInitData) (*queryresult.ResultStreamer, error)

RunInteractivePrompt :: start the interactive query prompt

Types

type AfterPromptCloseAction

type AfterPromptCloseAction int
const (
	AfterPromptCloseExit AfterPromptCloseAction = iota
	AfterPromptCloseRestart
)

type Highlighter

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

func (*Highlighter) Highlight

func (h *Highlighter) Highlight(d prompt.Document) ([]byte, error)

type InteractiveClient

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

InteractiveClient :: wrapper over *LocalClient and *prompt.Prompt along to facilitate interactive query prompt

func (*InteractiveClient) ClosePrompt

func (c *InteractiveClient) ClosePrompt(afterClose AfterPromptCloseAction)

ClosePrompt cancels the running prompt, setting the action to take after close

func (*InteractiveClient) InteractiveQuery

func (c *InteractiveClient) InteractiveQuery()

InteractiveQuery :: start an interactive prompt and return

Jump to

Keyboard shortcuts

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