Re: [systemd-devel] [PATCH] bash-completion: --property support

2013-04-17 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Apr 17, 2013 at 04:50:19PM +0200, Lennart Poettering wrote: > On Tue, 16.04.13 13:48, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > > +__systemd_properties() { > > +local mode=$1; shift 1 > > +{ __systemctl $mode show; > > You probaly want to add "-a" here, si

Re: [systemd-devel] [PATCH] bash-completion: --property support

2013-04-17 Thread Lennart Poettering
On Tue, 16.04.13 13:48, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > +__systemd_properties() { > +local mode=$1; shift 1 > +{ __systemctl $mode show; You probaly want to add "-a" here, since "systemctl show" normally suppresses 'empty' properties. Lennart -- Lennart

Re: [systemd-devel] [PATCH] bash-completion: --property support

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Apr 16, 2013 at 01:57:47PM -0400, Dave Reisner wrote: > On Tue, Apr 16, 2013 at 01:48:14PM -0400, Zbigniew Jędrzejewski-Szmek wrote: > > --- > > It turns out that simply fetching the list is fast enough. > > At least on my relatively beefy machine. And this approach > > is quite easy. So I

Re: [systemd-devel] [PATCH] bash-completion: --property support

2013-04-16 Thread Dave Reisner
On Tue, Apr 16, 2013 at 01:48:14PM -0400, Zbigniew Jędrzejewski-Szmek wrote: > --- > It turns out that simply fetching the list is fast enough. > At least on my relatively beefy machine. And this approach > is quite easy. So I think we can do that. > > Zbyszek > > shell-completion/bash/systemctl |

[systemd-devel] [PATCH] bash-completion: --property support

2013-04-16 Thread Zbigniew Jędrzejewski-Szmek
--- It turns out that simply fetching the list is fast enough. At least on my relatively beefy machine. And this approach is quite easy. So I think we can do that. Zbyszek shell-completion/bash/systemctl | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git