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")
def list(self): """List all credentials.""" print_simple_collection( CredentialsSchema(), self.repository.all(), "id", exclude=["token"] )
def list(self): print_simple_collection(ProjectSchema(), self.projects.all(), "id")
def list(self): print_simple_collection(WorkspaceSchema(), self.workspaces.all(), "path")
def list(self): """List all instances.""" print_simple_collection(InstanceSchema(), self.instances.all(), "id")