fix references to complete
This commit is contained in:
parent
7881076092
commit
b05895fa6c
4
doc.go
4
doc.go
|
@ -27,7 +27,7 @@ Install:
|
||||||
|
|
||||||
1. Type in your shell:
|
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
|
COMP_INSTALL=1 gocomplete
|
||||||
|
|
||||||
2. Restart your shell
|
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`
|
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
|
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).
|
(See ./example/compflag).
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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.
|
// completion for a defined set of flags.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
3
go.sum
3
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/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 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
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/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 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
|
||||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||||
|
|
Loading…
Reference in New Issue