diff options
| author | Eyal Posener <[email protected]> | 2017-05-13 11:16:23 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2017-05-13 11:21:02 +0300 |
| commit | fc04737363e2afb0adc00cf87c991c78c5cfa879 (patch) | |
| tree | 806748bda6127ac57b679daaf08780541d6c7d85 | |
| parent | 758253551ecf81fc5fb107ef8bdad2745d3525fb (diff) | |
Update readme.md
| -rw-r--r-- | readme.md | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -40,8 +40,8 @@ Uninstall by `gocomplete -uninstall` Supported shells: -[x] bash -[x] zsh +- [x] bash +- [x] zsh ### Usage @@ -75,9 +75,10 @@ func main() { // define flags of the build sub command Flags: complete.Flags{ - // build sub command has a flag '-fast', which - // does not expects anything after it. - "-fast": complete.PredictNothing, + // build sub command has a flag '-cpus', which + // expects number of cpus after it. in that case + // anything could complete this flag. + "-cpus": complete.Anything, }, }, }, @@ -105,4 +106,6 @@ func main() { ### Self completing program In case that the program that we want to complete is written in go we -can make it self completing. Here is an [example](./example/self/main.go) +can make it self completing. + +Here is an [example](./example/self/main.go) |
