summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2019-11-20 22:52:44 +0200
committerEyal Posener <[email protected]>2019-11-20 22:52:44 +0200
commitb05895fa6c478784bdf66547fd6b0bf613d06f0e (patch)
tree6f4934b395617bc81a431b8c528dcd428d1184f7
parent7881076092b517aa51d532d933371842bc0dc084 (diff)
fix references to complete
-rw-r--r--doc.go4
-rw-r--r--example/compflag/main.go2
-rw-r--r--go.sum3
3 files changed, 3 insertions, 6 deletions
diff --git a/doc.go b/doc.go
index 0b8776b..63775dc 100644
--- a/doc.go
+++ b/doc.go
@@ -27,7 +27,7 @@ Install:
1. Type in your shell:
- go get -u github.com/posener/complete/gocomplete
+ go get -u github.com/posener/complete/v2/gocomplete
COMP_INSTALL=1 gocomplete
2. Restart your shell
@@ -99,7 +99,7 @@ To use this feature, simply call `complete.CommandLine` before `flag.Parse`. (Se
If flag value completion is desired, it can be done by providing the standard library `flag.Var`
function a `flag.Value` that also implements the `complete.Predictor` interface. For standard
-flag with values, it is possible to use the `github.com/posener/complete/compflag` package.
+flag with values, it is possible to use the `github.com/posener/complete/v2/compflag` package.
(See ./example/compflag).
import (
diff --git a/example/compflag/main.go b/example/compflag/main.go
index 897dbb4..8ae67ac 100644
--- a/example/compflag/main.go
+++ b/example/compflag/main.go
@@ -1,4 +1,4 @@
-// compflag shows how to use the github.com/posener/complete/compflag package to have auto bash
+// compflag shows how to use the github.com/posener/complete/v2/compflag package to have auto bash
// completion for a defined set of flags.
package main
diff --git a/go.sum b/go.sum
index d8739d5..accaa27 100644
--- a/go.sum
+++ b/go.sum
@@ -6,9 +6,6 @@ github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uP
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/posener/complete v1.2.2 h1:xu2vuFugxm4IfAymbmmVrnEVy29eGUDn8I7HheRseHg=
-github.com/posener/complete v1.2.2/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
-github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=