Do not require epydoc at runtime

It's a little excessive to require the entire epydoc package so that
configshell can output italic/bold help text. If it's present, use it,
but otherwise just print plaintext.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix helptext - shell may not be interactive

If invoked with run_cmdline instead of run_interactive, the shell may not
be interactive, in which case the helptext would be misleading.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix get_command_syntax bug

It was returning the same value for multiple default params (since index
was not being incremented).

Signed-off-by: Andy Grover <agrover@redhat.com>
Update README for free branch

Signed-off-by: Andy Grover <agrover@redhat.com>
Allow mixed-case values for true/false

Signed-off-by: Andy Grover <agrover@redhat.com>
Don't use readline unless isatty

Importing readline emits escape sequences to stdout. We want to avoid this
when output is not to a tty.

Signed-off-by: Andy Grover <agrover@redhat.com>
Do not print color escape codes if stdout is not a tty

Signed-off-by: Andy Grover <agrover@redhat.com>
remove epydoc import

I put the epydoc import in a try block, but forgot to remove the original
import.

Signed-off-by: Andy Grover <agrover@redhat.com>
Remove unused list_group_params arguments

"param" and "type" are never used, so they can be removed.

Signed-off-by: Andy Grover <agrover@redhat.com>
Only return dict keys from list_config_groups

That's all anyone is looking at.

Signed-off-by: Andy Grover <agrover@redhat.com>
Make log warning color yellow

It seems to be brownish, but whatever, it's better than blue, which is
also used for debug level.

Signed-off-by: Andy Grover <agrover@redhat.com>
Sort first by ending number, if present

Sort (lun1, lun2, lun10) as (lun1, lun2, lun10) instead of
(lun1, lun10, lun2).

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix sort again

We actually want to sort by non-ending-numeric part first, and *then* sort
by ending number.

Signed-off-by: Andy Grover <agrover@redhat.com>
Improve comment

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix debug log date format to YYYY-MM-DD

Signed-off-by: Andy Grover <agrover@redhat.com>
Lambda not needed

sorting_keys is already a function.

Signed-off-by: Andy Grover <agrover@redhat.com>
Avoid exception when arrowing down past end of list

I have a feeling that urwid has a more elegant way to handle scrolling
behavior, but it wasn't very obvious, so this works.

Signed-off-by: Andy Grover <agrover@redhat.com>
Merge branch 'master' into dev
Merge remote branch 'gh/master' into dev
Move README to README.md and update for new dev info

Signed-off-by: Andy Grover <agrover@redhat.com>