Documentation ¶ Index ¶ func Complete(shell Shell, args []string) string type Fish func (f Fish) Complete(vals []core.KeyVal) string func (f Fish) Name() string func (f Fish) Register() string type Shell func GetShell(name string) Shell type Zsh func (z Zsh) Complete(vals []core.KeyVal) string func (z Zsh) Name() string func (z Zsh) Register() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Complete ¶ func Complete(shell Shell, args []string) string Complete returns the completions output for the provided shell and arguments. Types ¶ type Fish ¶ type Fish struct{} func (Fish) Complete ¶ func (f Fish) Complete(vals []core.KeyVal) string func (Fish) Name ¶ func (f Fish) Name() string func (Fish) Register ¶ func (f Fish) Register() string type Shell ¶ type Shell interface { Name() string Register() string Complete([]core.KeyVal) string } Shell represents a supported shell for completions. func GetShell ¶ func GetShell(name string) Shell GetShell returns the shell matching the provided name. If no shell matches, nil is returned. type Zsh ¶ type Zsh struct{} func (Zsh) Complete ¶ func (z Zsh) Complete(vals []core.KeyVal) string func (Zsh) Name ¶ func (z Zsh) Name() string func (Zsh) Register ¶ func (z Zsh) Register() string Source Files ¶ View all Source files complete.goshells.go Click to show internal directories. Click to hide internal directories.