update readme
This commit is contained in:
parent
ddaf561db3
commit
85542e6d46
|
@ -3,7 +3,7 @@
|
||||||
[](https://travis-ci.org/posener/complete)
|
[](https://travis-ci.org/posener/complete)
|
||||||
[](https://codecov.io/gh/posener/complete)
|
[](https://codecov.io/gh/posener/complete)
|
||||||
[](https://golangci.com/r/github.com/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)
|
[](https://goreadme.herokuapp.com)
|
||||||
|
|
||||||
Package complete is everything for bash completion and Go.
|
Package complete is everything for bash completion and Go.
|
||||||
|
@ -35,7 +35,7 @@ Install:
|
||||||
1. Type in your shell:
|
1. Type in your shell:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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`
|
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](./example/compflag)).
|
(See [./example/compflag](./example/compflag)).
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
|
Loading…
Reference in New Issue