Documentation ¶
Index ¶
- func GetTableAutoCompleteSuggestions(schema *schema.Metadata, connectionMap *steampipeconfig.ConnectionDataMap) []prompt.Suggest
- func PromptForMissingVariables(ctx context.Context, missingVariables []*modconfig.Variable) error
- func RunInteractivePrompt(ctx context.Context, initData *query.InitData) (*queryresult.ResultStreamer, error)
- type AfterPromptCloseAction
- type Highlighter
- type InteractiveClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTableAutoCompleteSuggestions ¶ added in v0.11.1
func GetTableAutoCompleteSuggestions(schema *schema.Metadata, connectionMap *steampipeconfig.ConnectionDataMap) []prompt.Suggest
GetTableAutoCompleteSuggestions derives and returns tables for typeahead
func RunInteractivePrompt ¶
func RunInteractivePrompt(ctx context.Context, initData *query.InitData) (*queryresult.ResultStreamer, error)
RunInteractivePrompt starts 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 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 ¶ added in v0.10.0
func (c *InteractiveClient) InteractivePrompt(ctx context.Context)
InteractivePrompt starts an interactive prompt and return
func (*InteractiveClient) LoadSchema ¶ added in v0.11.0
func (c *InteractiveClient) LoadSchema() error
LoadSchema implements Client retrieve both the raw query result and a sanitised version in list form
Click to show internal directories.
Click to hide internal directories.