Documentation ¶
Overview ¶
Package install provide installation functions of command completion.
Index ¶
- Constants
- Variables
- func EnsureInstall(cmd string, shells ...string) error
- func Install(cmd string) error
- func IsInstalled(cmd string) bool
- func NewSimpleSearcher(line string) script.Modifier
- func Run(name string, uninstall, yes bool, out io.Writer, in io.Reader)
- func Uninstall(cmd string) error
- type SimpleSearcher
Constants ¶
View Source
const ( Bash = "bash" Zsh = "zsh" Fish = "fish" )
Variables ¶
View Source
var ErrNoShellsFound = errors.New("Did not find any shells to uninstall")
Functions ¶
func EnsureInstall ¶
EnsureInstall complete command given: cmd: is the command name
func IsInstalled ¶
IsInstalled returns true if the completion for the given cmd is installed.
func NewSimpleSearcher ¶
Types ¶
type SimpleSearcher ¶
type SimpleSearcher struct {
// contains filtered or unexported fields
}
SimpleSearcher is a modifier that filters only line that equal line we are searching for. If Invert was set only line that did
func (SimpleSearcher) Modify ¶
func (g SimpleSearcher) Modify(line []byte) (modifed []byte, err error)
func (SimpleSearcher) Name ¶
func (g SimpleSearcher) Name() string
Click to show internal directories.
Click to hide internal directories.