示例#1
0
 def _print_list(self, objs, fields, formatters=None, sortby_index=0,
                 mixed_case_fields=None, field_labels=None):
     fields = self._sanitized_fields(fields)
     if self.json_output:
         subsets = [dict([(f, getattr(obj, f, '')) for f in fields])
                    for obj in objs]
         print(json.dumps(subsets, indent=2, sort_keys=True))
     else:
         cliutils.print_list(objs, fields, formatters, sortby_index,
                             mixed_case_fields, field_labels)
示例#2
0
 def list(self):
     """List all pipelines."""
     fields = ['uuid', 'name', 'description']
     response = self.client.pipelines.list()
     cliutils.print_list(response, fields)
示例#3
0
 def list(self):
     """List all language packs."""
     fields = ['uuid', 'name', 'description', 'compiler_versions',
               'os_platform']
     response = self.client.languagepacks.list()
     cliutils.print_list(response, fields)
示例#4
0
 def list(self):
     """List all components."""
     fields = ['uuid', 'name', 'description', 'assembly_uuid']
     response = self.client.components.list()
     cliutils.print_list(response, fields)
示例#5
0
 def list(self):
     """List all assemblies."""
     fields = ['uuid', 'name', 'description', 'status']
     response = self.client.assemblies.list()
     cliutils.print_list(response, fields)
示例#6
0
 def list(self):
     """List all applications."""
     fields = ["uuid", "name", "description"]
     response = self.client.plans.list()
     cliutils.print_list(response, fields)
示例#7
0
 def list(self):
     """List all language packs."""
     fields = ["uuid", "name", "description", "compiler_versions", "os_platform"]
     response = self.client.languagepacks.list()
     cliutils.print_list(response, fields)
示例#8
0
 def list(self):
     """List all assemblies."""
     fields = ["uuid", "name", "description", "status"]
     response = self.client.assemblies.list()
     cliutils.print_list(response, fields)