commands

package
v0.0.0-...-2dd510e Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupCommands

func SetupCommands() []*syntax.Command

SetupCommands configures all command to run.

Types

type NamesCompleter

type NamesCompleter struct {
	*syntax.CompleterArgument
}

NamesCompleter represents the name completer

func (*NamesCompleter) Query

func (nc *NamesCompleter) Query(ctx *syntax.Context, content syntax.IContent, line interface{}, index int) (interface{}, bool)

Query returns the query for any node completer.

func (*NamesCompleter) Validate

func (nc *NamesCompleter) Validate(ctx *syntax.Context, content syntax.IContent, line interface{}, index int) bool

Validate checks if the content is value for the given line.

Jump to

Keyboard shortcuts

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