Re: [systemd-devel] List all available units

2012-08-13 Thread Lennart Poettering
On Mon, 13.08.12 16:01, Václav Pavlín (vpav...@redhat.com) wrote: > > I hope this makes sense? > > > > systemctl complete should probably be considered a hidden feature, so > > not show up in --help or in the man page. > > > > Lennart > > > > I think it does make sense. So if we are ok with th

Re: [systemd-devel] List all available units

2012-08-13 Thread Václav Pavlín
Lennart Poettering píše v Pá 10. 08. 2012 v 16:27 +0200: > I hope this makes sense? > > systemctl complete should probably be considered a hidden feature, so > not show up in --help or in the man page. > > Lennart > I think it does make sense. So if we are ok with this solution, I can start to

Re: [systemd-devel] List all available units

2012-08-10 Thread Lennart Poettering
On Thu, 09.08.12 09:39, Václav Pavlín (vpav...@redhat.com) wrote: > > If we present the user with a list like this we probably should show a > > tree view of some kind since the unit file getty@.service might get > > instantiated a couple of times as "getty@tty1.service" and so on, and > > hence i

Re: [systemd-devel] List all available units

2012-08-09 Thread Colin Guthrie
'Twas brillig, and Václav Pavlín at 09/08/12 08:39 did gyre and gimble: > Lennart Poettering píše v St 08. 08. 2012 v 18:31 +0200: >> If we present the user with a list like this we probably should show a >> tree view of some kind since the unit file getty@.service might get >> instantiated a coupl

Re: [systemd-devel] List all available units

2012-08-09 Thread Václav Pavlín
Lennart Poettering píše v St 08. 08. 2012 v 18:31 +0200: > On Tue, 07.08.12 16:35, Václav Pavlín (vpav...@redhat.com) wrote: > > I am not sure we should include the units from "list-unit-files" in the > output of "list-units", as this would increase the output quite a bit, > and would be hardly he

Re: [systemd-devel] List all available units

2012-08-08 Thread Lennart Poettering
On Tue, 07.08.12 16:35, Václav Pavlín (vpav...@redhat.com) wrote: > Hi everyone, > > I started to work on these two bugs (if I solve the first one, the > second one will be almost solved as well): > > https://bugzilla.redhat.com/show_bug.cgi?id=748512 > https://bugzilla.redhat.com/show_bug.cgi?i

Re: [systemd-devel] List all available units

2012-08-08 Thread Michal Schmidt
On 08/08/2012 10:21 AM, Václav Pavlín wrote: If we decide to change behaviour of systemctl, the approach, I described here, can be used. If you prefer to edit autocomplete script, it can be done with merge of sytemctl output of list-units and list-unit-files and then pipe to uniq. A lot of user

Re: [systemd-devel] List all available units

2012-08-08 Thread Václav Pavlín
As I noted here: https://bugzilla.redhat.com/show_bug.cgi?id=790768#c12 this patch doesn't solve my issue. But I think it can be solved in either systemctl or autocomlete script. If we decide to change behaviour of systemctl, the approach, I described here, can be used. If you prefer to edit au

Re: [systemd-devel] List all available units

2012-08-07 Thread Kay Sievers
On Tue, Aug 7, 2012 at 5:21 PM, "Jóhann B. Guðmundsson" wrote: > On 08/07/2012 02:35 PM, Václav Pavlín wrote: >> >> https://bugzilla.redhat.com/show_bug.cgi?id=790768 > > > I thought Harald had already fixed this one but perhaps Lennart never > committed it. http://cgit.freedesktop.org/systemd/sy

Re: [systemd-devel] List all available units

2012-08-07 Thread Jóhann B. Guðmundsson
On 08/07/2012 02:35 PM, Václav Pavlín wrote: https://bugzilla.redhat.com/show_bug.cgi?id=790768 I thought Harald had already fixed this one but perhaps Lennart never committed it. See [1]. JBG 1.http://lists.freedesktop.org/archives/systemd-devel/2012-February/004573.html