Exemplo n.º 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)
Exemplo n.º 2
0
 def list(self):
     """List all pipelines."""
     fields = ['uuid', 'name', 'description']
     response = self.client.pipelines.list()
     cliutils.print_list(response, fields)
Exemplo n.º 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)
Exemplo n.º 4
0
 def list(self):
     """List all components."""
     fields = ['uuid', 'name', 'description', 'assembly_uuid']
     response = self.client.components.list()
     cliutils.print_list(response, fields)
Exemplo n.º 5
0
 def list(self):
     """List all assemblies."""
     fields = ['uuid', 'name', 'description', 'status']
     response = self.client.assemblies.list()
     cliutils.print_list(response, fields)
Exemplo n.º 6
0
 def list(self):
     """List all applications."""
     fields = ["uuid", "name", "description"]
     response = self.client.plans.list()
     cliutils.print_list(response, fields)
Exemplo n.º 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)
Exemplo n.º 8
0
 def list(self):
     """List all assemblies."""
     fields = ["uuid", "name", "description", "status"]
     response = self.client.assemblies.list()
     cliutils.print_list(response, fields)