Documentation ¶
Overview ¶
Package complete provides types to aid with auto-completion of Flux scripts in editors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Completer ¶
type Completer struct {
// contains filtered or unexported fields
}
Completer provides methods for suggestions in Flux queries.
func DefaultCompleter ¶
func DefaultCompleter() Completer
DefaultCompleter creates a completer with builtin scope
func NewCompleter ¶
func NewCompleter(scope interpreter.Scope) Completer
NewCompleter creates a new completer from scope.
func (Completer) FunctionNames ¶
FunctionNames returns the names of all function.
func (Completer) FunctionSuggestion ¶
func (c Completer) FunctionSuggestion(name string) (FunctionSuggestion, error)
FunctionSuggestion returns information needed for autocomplete suggestions for the function with the given name.
type FunctionSuggestion ¶
FunctionSuggestion provides suggestion information about a function.
Click to show internal directories.
Click to hide internal directories.