package complete
import "github.com/influxdata/flux/complete"
Package complete provides types to aid with auto-completion of Flux scripts in editors.
Index ¶
- type Completer
- func NewCompleter(scope values.Scope) Completer
- func (c Completer) FunctionNames() []string
- func (c Completer) FunctionSuggestion(name string) (FunctionSuggestion, error)
- func (c Completer) Names() []string
- func (c Completer) Value(name string) (values.Value, error)
- type FunctionSuggestion
Types ¶
type Completer ¶
type Completer struct {
// contains filtered or unexported fields
}
Completer provides methods for suggestions in Flux queries.
func NewCompleter ¶
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.
func (Completer) Names ¶
Names returns the slice of names in scope.
func (Completer) Value ¶
Value returns a value based on the expression name, if one exists.
type FunctionSuggestion ¶
FunctionSuggestion provides suggestion information about a function.
Source Files ¶
- Version
- v0.196.1 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 day ago –
Tools for package owners.