fmt
This commit is contained in:
parent
07b98cb912
commit
60345dc6db
|
@ -8,8 +8,8 @@ var (
|
|||
predictEllipsis = complete.PredictSet("./...")
|
||||
|
||||
goFilesOrPackages = complete.PredictFiles("**.go").
|
||||
Or(complete.PredictDirs("./")).
|
||||
Or(predictEllipsis)
|
||||
Or(complete.PredictDirs("./")).
|
||||
Or(predictEllipsis)
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue