autocomplete

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFullInitScript added in v1.5.0

func GetFullInitScript(shell string) string

GetFullInitScript fetches the full initialization script for the provided shell.

func GetInitScript added in v1.5.0

func GetInitScript(shell string) string

GetInitScript fetches the shell initialization script for the provided shell.

func GetInitScriptShells added in v1.5.0

func GetInitScriptShells() []string

GetInitScriptShells fetches the list of supported shells that may be initialized.

func Matches

func Matches(value, sequence string) bool

Matches determines whether a value matches a specific ordered sequence of characters. For example "Albuquerque" shuould match "abq" but not "lab".

Types

type Completer

type Completer struct {
	Filter string
	// contains filtered or unexported fields
}

func NewCompleter

func NewCompleter(filter string) *Completer

func (*Completer) AllScratchpads

func (c *Completer) AllScratchpads()

AllScratchpads will generate autocomplete suggestions for scratchpads

func (*Completer) AllServiceNamespaces

func (c *Completer) AllServiceNamespaces()

AllServiceNamespaces will complete the namespace placeholders for a fully qualified service name

func (*Completer) AllServiceRepos

func (c *Completer) AllServiceRepos()

AllServiceRepos will generate autocomplete suggestions for repos hosted on your all services.

func (*Completer) Apps

func (c *Completer) Apps()

Apps will generate autocomplete suggestions for applications in your config file.

func (*Completer) DefaultServiceNamespaces

func (c *Completer) DefaultServiceNamespaces()

DefaultServiceNamespaces will complete the namespace placeholders for the default service.

func (*Completer) DefaultServiceRepos

func (c *Completer) DefaultServiceRepos()

DefaultServiceRepos will generate autocomplete suggestions for repos hosted on your default service.

func (*Completer) Fixed added in v1.5.0

func (c *Completer) Fixed(options ...string)

func (*Completer) RepoAliases

func (c *Completer) RepoAliases()

RepoAliases will generate autocomplete suggestions for your repo aliases.

func (*Completer) ServicePrefixes

func (c *Completer) ServicePrefixes()

ServicePrefixes will generate autocomplete suggestions the services in your config file.

func (*Completer) Services

func (c *Completer) Services()

Services will generate autocomplete suggestions the services in your config file.

Jump to

Keyboard shortcuts

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