Re: [lxc-devel] [PATCH] Rewrite lxc-ls in python

2012-11-21 Thread Stéphane Graber
On 11/21/2012 06:04 PM, Stéphane Graber wrote: > This rewrite is mostly compatible with the shell version. > --active and -1 still work and behave as they used to. > > This adds --running, --stopped and --frozen as state filters. > > A new "fancy" view is also implemented (can be used with --fanc

[lxc-devel] [PATCH] Rewrite lxc-ls in python

2012-11-21 Thread Stéphane Graber
This rewrite is mostly compatible with the shell version. --active and -1 still work and behave as they used to. This adds --running, --stopped and --frozen as state filters. A new "fancy" view is also implemented (can be used with --fancy) and will show containers in a column-based interface wit

Re: [lxc-devel] [PATCH] lxc-create: use posix shell instead of bash

2012-11-21 Thread Stéphane Graber
On 11/19/2012 11:36 AM, Serge Hallyn wrote: > Quoting Natanael Copa (nc...@alpinelinux.org): >> - use '[ -x /path/prog ]' instead of 'type /path/prog' >> - avoid getopt --longoptions >> - add \ at after && and || when those are at end of line >> - make sure condition expands to empty string if vari