Commit bfa01648 authored by Christos Stavrakakis's avatar Christos Stavrakakis

snf_django: Add pprint_table to SynnefoCommand

Add 'pprint_table' to SynnefoCommand, which is just a wrapper around
'snf_django.management.utils.pprint_table' using commands stdout.
parent 4fbcfca8
......@@ -80,5 +80,5 @@ class Command(SynnefoCommand):
'task_job_id': server.task_job_id,
}
utils.pprint_table(self.stdout, [kv.values()], kv.keys(),
options["output_format"], vertical=True)
self.pprint_table([kv.values()], kv.keys(), options["output_format"],
vertical=True)
......@@ -92,6 +92,9 @@ class SynnefoCommand(BaseCommand):
return parser
def pprint_table(self, *args, **kwargs):
utils.pprint_table(self.stdout, *args, **kwargs)
class ListCommand(SynnefoCommand):
"""Generic *-list management command.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment