Permalink
Browse files

Add more list output formatters

  • Loading branch information...
1 parent cf01650 commit 5eeacf1b35831ee0fdbfd7c0d75272b66cf7d860 @priteau priteau committed Oct 9, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 ceiclient/commands.py
View
@@ -61,6 +61,11 @@ def __init__(self, subparsers):
def execute(client, opts):
return client.list_dts(caller=opts.caller)
+ @staticmethod
+ def output(result):
+ for dt_name in result:
+ print dt_name
+
class DTRSRemoveDT(CeiCommand):
@@ -133,6 +138,11 @@ def __init__(self, subparsers):
def execute(client, opts):
return client.list_sites()
+ @staticmethod
+ def output(result):
+ for site_name in result:
+ print site_name
+
class DTRSRemoveSite(CeiCommand):
@@ -205,6 +215,11 @@ def __init__(self, subparsers):
def execute(client, opts):
return client.list_credentials(caller=opts.caller)
+ @staticmethod
+ def output(result):
+ for site_name in result:
+ print site_name
+
class DTRSRemoveCredentials(CeiCommand):
@@ -534,6 +549,11 @@ def __init__(self, subparsers):
def execute(client, opts):
return client.list_process_definitions()
+ @staticmethod
+ def output(result):
+ for process_definition_id in result:
+ print process_definition_id
+
class PDScheduleProcess(CeiCommand):

0 comments on commit 5eeacf1

Please sign in to comment.