Esempio n. 1
0
 def list(self):
     for workflow in self.workflow_repository.all():
         print_formatted_text(HTML(f"<b>ID: </b>{workflow.id}"))
         print()
         print_formatted_text(HTML("<b>Actions</b>"))
         print("---")
         print_simple_collection(ActionSchema(), workflow.actions, "name")
         print()
         print_formatted_text(HTML("<b>Statuses</b>"))
         print("---")
         print_simple_collection(IssueStatusMappingSchema(),
                                 workflow.statuses, "status")
         print()
         print_formatted_text(HTML("<b>Issue types</b>"))
         print("---")
         print_simple_collection(IssueTypeMappingSchema(), workflow.types,
                                 "issue_type")
Esempio n. 2
0
 def list(self):
     """List all credentials."""
     print_simple_collection(
         CredentialsSchema(), self.repository.all(), "id", exclude=["token"]
     )
Esempio n. 3
0
 def list(self):
     print_simple_collection(ProjectSchema(), self.projects.all(), "id")
Esempio n. 4
0
 def list(self):
     print_simple_collection(WorkspaceSchema(), self.workspaces.all(),
                             "path")
Esempio n. 5
0
 def list(self):
     """List all instances."""
     print_simple_collection(InstanceSchema(), self.instances.all(), "id")