diff options
| author | Eyal Posener <[email protected]> | 2019-11-23 12:30:12 +0200 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2019-11-23 12:30:12 +0200 |
| commit | 85542e6d466253476d3b2c0704d902509fcb4840 (patch) | |
| tree | 45885d988ab8fa401fe50352ae3ea454d0659cfb | |
| parent | ddaf561db38590cb729e3ee296fa18bbd7f798e6 (diff) | |
update readme
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ [](https://travis-ci.org/posener/complete) [](https://codecov.io/gh/posener/complete) [](https://golangci.com/r/github.com/posener/complete) -[](http://godoc.org/github.com/posener/complete) +[](https://pkg.go.dev/github.com/posener/complete/v2?tab=doc) [](https://goreadme.herokuapp.com) Package complete is everything for bash completion and Go. @@ -35,7 +35,7 @@ Install: 1. Type in your shell: ```go -go get -u github.com/posener/complete/gocomplete +go get -u github.com/posener/complete/v2/gocomplete COMP_INSTALL=1 gocomplete ``` @@ -112,7 +112,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](./example/compflag)). ```diff |
