looks awesome!! In this, https://github.com/posener/complete/blob/master/example/self/main.go
Just wonder why i can t simply do something similar to, var name string whatever.StringVar(&name, "name", "", "Give your name", complete. PredictAnything) if whatever.Run() { return } Anyway, great stuff here! On Saturday, May 13, 2017 at 10:29:47 AM UTC+2, Eyal Posener wrote: > > Simple to install (Assuming GOPATH and PATH are correct): > > go install github.com/posener/complete/gocomplete > gocomplete -install > > > Features: > > - Complete go command, sub commands and flags. > - Complete package names, .go files and ellipsis when necessary. > - Complete test names after -run flag! > > Works with bash / zsh shells > > This is also a package, that enables writing bash completion scripts, or > add them to an existing go program. > > Please, open issues, contribute and star! > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.