diff options
| author | Eyal Posener <[email protected]> | 2017-05-06 22:25:44 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-05-06 22:25:44 +0300 |
| commit | cc743aad8be84fa477d744e144c84ed75431ba3a (patch) | |
| tree | 505482bd32b4d833299d28ac48f3963fd8492b69 /cmd/install/install.go | |
| parent | c26ef096c7990a5ae97b503545fd76ff6df388d6 (diff) | |
Fix vet
Diffstat (limited to 'cmd/install/install.go')
| -rw-r--r-- | cmd/install/install.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/install/install.go b/cmd/install/install.go index cef11f0..8f8ce9f 100644 --- a/cmd/install/install.go +++ b/cmd/install/install.go @@ -10,6 +10,10 @@ type installer interface { Uninstall(cmd, bin string) error } +// Install complete command given: +// cmd: is the command name +// asRoot: if true the completion will be installed in /etc/bash_complete.d +// otherwise the complete command will be added to the ~/.bashrc file. func Install(cmd string, asRoot bool) error { bin, err := getBinaryPath() if err != nil { @@ -18,6 +22,10 @@ func Install(cmd string, asRoot bool) error { return getInstaller(asRoot).Install(cmd, bin) } +// Uninstall complete command given: +// cmd: is the command name +// asRoot: if true the completion will be removed from /etc/bash_complete.d +// otherwise the complete command will be removed from the ~/.bashrc file. func Uninstall(cmd string, asRoot bool) error { bin, err := getBinaryPath() if err != nil { |
