(projs []*adminv1.Project)
| 53 | } |
| 54 | |
| 55 | func (p *Printer) PrintProjects(projs []*adminv1.Project) { |
| 56 | if len(projs) == 0 { |
| 57 | p.PrintfWarn("No projects found\n") |
| 58 | return |
| 59 | } |
| 60 | |
| 61 | p.PrintData(toProjectTable(projs)) |
| 62 | } |
| 63 | |
| 64 | func toProjectTable(projects []*adminv1.Project) []*project { |
| 65 | projs := make([]*project, 0, len(projects)) |