diff options
| -rw-r--r-- | doc.go | 4 | ||||
| -rw-r--r-- | example/compflag/main.go | 2 | ||||
| -rw-r--r-- | go.sum | 3 |
3 files changed, 3 insertions, 6 deletions
@@ -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 @@ -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= |
