interactive

package
v0.20.0-rc.2b Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 is a wrapper over a LocalClient and a Prompt 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) InteractivePrompt

func (c *InteractiveClient) InteractivePrompt(parentContext context.Context)

InteractivePrompt starts an interactive prompt and return

type RunInteractivePromptResult added in v0.19.0

type RunInteractivePromptResult struct {
	Streamer  *queryresult.ResultStreamer
	PromptErr error
}

func RunInteractivePrompt

func RunInteractivePrompt(ctx context.Context, initData *query.InitData) *RunInteractivePromptResult

RunInteractivePrompt starts the interactive query prompt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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