示例#1
0
文件: workflow.py 项目: lichensky/gfl
 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")
示例#2
0
 def list(self):
     """List all credentials."""
     print_simple_collection(
         CredentialsSchema(), self.repository.all(), "id", exclude=["token"]
     )
示例#3
0
文件: projects.py 项目: lichensky/gfl
 def list(self):
     print_simple_collection(ProjectSchema(), self.projects.all(), "id")
示例#4
0
 def list(self):
     print_simple_collection(WorkspaceSchema(), self.workspaces.all(),
                             "path")
示例#5
0
 def list(self):
     """List all instances."""
     print_simple_collection(InstanceSchema(), self.instances.all(), "id")