summaryrefslogtreecommitdiff
path: root/gocomplete
diff options
context:
space:
mode:
Diffstat (limited to 'gocomplete')
-rw-r--r--gocomplete/complete.go4
-rw-r--r--gocomplete/tests.go7
2 files changed, 5 insertions, 6 deletions
diff --git a/gocomplete/complete.go b/gocomplete/complete.go
index 4eab6a5..033a374 100644
--- a/gocomplete/complete.go
+++ b/gocomplete/complete.go
@@ -1,9 +1,7 @@
// Package main is complete tool for the go command line
package main
-import (
- "github.com/posener/complete"
-)
+import "github.com/posener/complete"
var (
predictEllipsis = complete.PredictSet("./...")
diff --git a/gocomplete/tests.go b/gocomplete/tests.go
index 3a6a185..905c5dc 100644
--- a/gocomplete/tests.go
+++ b/gocomplete/tests.go
@@ -9,14 +9,15 @@ import (
"strings"
"github.com/posener/complete"
+ "github.com/posener/complete/match"
)
func predictTest(testType string) complete.Predicate {
- return func(last string) []complete.Matcher {
+ return func(last string) []match.Matcher {
tests := testNames(testType)
- options := make([]complete.Matcher, len(tests))
+ options := make([]match.Matcher, len(tests))
for i := range tests {
- options[i] = complete.MatchPrefix(tests[i])
+ options[i] = match.Prefix(tests[i])
}
return options
}