Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread Simon Marchi
Yes, that's what i thought. When you type "git branch ", it gives you a list of branches. If you type "git branch -", it gives you the list of options that apply to branch. In the same idea, "lttng start " should give you a list of existing sessions (TODO), but "lttng start -" should give you the

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread David Goulet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Simon, forget it. It's perfectly fine like that. Since there is only "--*" options in the second level, a simple: lttng create -, works perfectly fine. And I checked, it's standard way to go since you could do file auto completion and we don'

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread David Goulet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Simon, This works like a charm except for one thing. For the first level (only "lttng"), if I , all possibilities are print out, which is very nice but for the second level, not working :(. Is it possible to add the automatic print of all availab

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread David Goulet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12-01-24 10:28 AM, Alexandre Montplaisir wrote: > On 12-01-24 09:59 AM, David Goulet wrote: >> >> >> On 12-01-24 09:47 AM, Mathieu Desnoyers wrote: >>> * Simon Marchi (simon.mar...@polymtl.ca) wrote: Hi, This is my first or so version

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread Yannick Brosseau
> big headache to type by hand. >>> It would be nice to figure out where we could package it in the >>> lttng-tools. Maybe in a extras/ directory ? Thoughts ? >> Yes normally, you can find these kind of things in contrib/ or extras/. >> >> We can thing also of default init script, basic setup scri

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread Alexandre Montplaisir
> > > > Or just leave it at the top level, it's only one file after all. In any > > case, we should put that kind of thing at the same place as the > > pkg-config (.pc) files. > > Well, it could, however, this is one file of potentially *many* that > we can make > available. I can think of init sc

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread Alexandre Montplaisir
On 12-01-24 09:59 AM, David Goulet wrote: > > > On 12-01-24 09:47 AM, Mathieu Desnoyers wrote: > > * Simon Marchi (simon.mar...@polymtl.ca) wrote: > >> Hi, > >> > >> This is my first or so version of the programmable bash completion > >> (tab completion) for the LTTng 2.0 command line tool: > >> >

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread David Goulet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12-01-24 09:47 AM, Mathieu Desnoyers wrote: > * Simon Marchi (simon.mar...@polymtl.ca) wrote: >> Hi, >> >> This is my first or so version of the programmable bash completion >> (tab completion) for the LTTng 2.0 command line tool: >> >> http://git

Re: [lttng-dev] Bash completion v0.00001

2012-01-24 Thread Mathieu Desnoyers
* Simon Marchi (simon.mar...@polymtl.ca) wrote: > Hi, > > This is my first or so version of the programmable bash completion > (tab completion) for the LTTng 2.0 command line tool: > > http://git.dorsal.polymtl.ca/~smarchi?p=lttng-bash-completion.git;a=blob;f=lttng;hb=HEAD > > Currently, it is a

[lttng-dev] Bash completion v0.00001

2012-01-23 Thread Simon Marchi
Hi, This is my first or so version of the programmable bash completion (tab completion) for the LTTng 2.0 command line tool: http://git.dorsal.polymtl.ca/~smarchi?p=lttng-bash-completion.git;a=blob;f=lttng;hb=HEAD Currently, it is able to complete general options (before the command), the comman