Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-14 Thread Eyal Posener
Sure, open an issue, I'll fix that On Sunday, May 14, 2017 at 10:30:57 AM UTC+3, Frank Schröder wrote: > > It's not how other completions work, it's redundant and makes it harder to > read. > > Frank Schröder > > > On 14. May 2017, at 09:04, Eyal Posener > wrote: > > > >

Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-14 Thread Frank Schröder
It's not how other completions work, it's redundant and makes it harder to read. Frank Schröder > On 14. May 2017, at 09:04, Eyal Posener wrote: > > currently all relative directories are completed with the `./` prefix, Does > it make any problems? -- You received this

Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-14 Thread Eyal Posener
On Sunday, May 14, 2017 at 9:06:45 AM UTC+3, Frank Schröder wrote: > > I'll look into this. So far I've spent 30 min on this. :) which dir > pattern should I use for directory completions so that the suggestions > don't start with ./ ? > currently all relative directories are completed with

Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-14 Thread Frank Schröder
I'll look into this. So far I've spent 30 min on this. :) which dir pattern should I use for directory completions so that the suggestions don't start with ./ ? Eg consul agent -server -data-dir ./data Frank Schröder > On 14. May 2017, at 07:46, Eyal Posener wrote: > >

Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-13 Thread Eyal Posener
Frank, sweet! Notice that you can build custom completions, such as completing agent names in consul exec -node and service names after -service and so on. Also, you may suggest to add this code to the main consul repo. On Sunday, May 14, 2017 at 3:58:37 AM UTC+3, Frank Schröder wrote: > >

Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-13 Thread Eyal Posener
Thanks! On Saturday, May 13, 2017 at 10:03:25 PM UTC+3, Jonathan Yu wrote: > > Nifty! Do the bash completion scripts need to be dynamically regenerated? > I guess so for some of the features like completing on package names. > Not sure I understand your question, but the bash completion script

Re: [go-nuts] New fully featured bash completion for go - written in go

2017-05-13 Thread Jonathan Yu
Nifty! Do the bash completion scripts need to be dynamically regenerated? I guess so for some of the features like completing on package names. It seems useful to have some Go completions (e.g. go in == go install) available as part of distro packages. On Sat, May 13, 2017 at 1:29 AM, Eyal

[go-nuts] New fully featured bash completion for go - written in go

2017-05-13 Thread Eyal Posener
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