6985299
command: make usable as a library (output as a string, etc.) New unit test included. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>