This commit is contained in:
Eyal Posener 2017-05-06 19:11:16 +03:00
parent 07b98cb912
commit 60345dc6db
3 changed files with 5 additions and 6 deletions

View File

@ -8,8 +8,8 @@ var (
predictEllipsis = complete.PredictSet("./...")
goFilesOrPackages = complete.PredictFiles("**.go").
Or(complete.PredictDirs("./")).
Or(predictEllipsis)
Or(complete.PredictDirs("./")).
Or(predictEllipsis)
)
func main() {

View File

@ -5,10 +5,10 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"os/user"
"path/filepath"
"io/ioutil"
)
type home struct{}
@ -150,4 +150,4 @@ func copyFile(src string, dst string) error {
defer out.Close()
_, err = io.Copy(out, in)
return err
}
}

View File

@ -25,6 +25,5 @@ func (root) Uninstall(cmd string, bin string) error {
}
func getBashCompletionDLink(cmd string) string {
return "/etc/bash_completion.d/"+cmd
return "/etc/bash_completion.d/" + cmd
}