From cc743aad8be84fa477d744e144c84ed75431ba3a Mon Sep 17 00:00:00 2001 From: Eyal Posener Date: Sat, 6 May 2017 22:25:44 +0300 Subject: Fix vet --- cmd/install/install.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd/install/install.go') 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 { -- cgit v1.2.3