www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dub shell completion

reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
Have anybody cooked up some bash completion for dub?
Jul 06 2014
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 06/07/14 20:09, "Nordlöw" wrote:
 Have anybody cooked up some bash completion for dub?
That would be nice to have. -- /Jacob Carlborg
Jul 06 2014
parent reply =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Monday, 7 July 2014 at 06:26:06 UTC, Jacob Carlborg wrote:
 That would be nice to have.
So I put together something that works in the majority of cases even for command specific flags and completion registered packages. https://github.com/nordlow/scripts/blob/master/dub-completion.bash
Jul 07 2014
parent Jacob Carlborg <doob me.com> writes:
On 07/07/14 11:14, "Nordlöw" wrote:

 So I put together something that works in the majority of cases even for
 command specific flags and completion registered packages.

 https://github.com/nordlow/scripts/blob/master/dub-completion.bash
Awesome, I'll have to give it a try later. -- /Jacob Carlborg
Jul 07 2014
prev sibling parent reply Iain Buclaw via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 6 July 2014 19:09, "Nordlöw" <digitalmars-d puremagic.com> wrote:
 Have anybody cooked up some bash completion for dub?
What's the list of switches accepted by dub? I'm convinced that --help doesn't show them all. ;)
Jul 07 2014
parent Jacob Carlborg <doob me.com> writes:
On 07/07/14 09:26, Iain Buclaw via Digitalmars-d wrote:

 What's the list of switches accepted by dub?

 I'm convinced that --help doesn't show them all. ;)
I'm pretty sure that "dub --help" only shows the global options. You have to run "dub <command> --help" to find the flags of a specific command. -- /Jacob Carlborg
Jul 07 2014