(instances []v7action.ServiceInstance)
| 57 | } |
| 58 | |
| 59 | func (cmd ServicesCommand) displayTable(instances []v7action.ServiceInstance) { |
| 60 | if len(instances) == 0 { |
| 61 | cmd.UI.DisplayText("No service instances found.") |
| 62 | return |
| 63 | } |
| 64 | |
| 65 | table := NewServicesTable(false, cmd.OmitApps) |
| 66 | |
| 67 | for _, si := range instances { |
| 68 | table.AppendRow(si) |
| 69 | } |
| 70 | cmd.UI.DisplayTableWithHeader("", table.table, ui.DefaultTableSpacePadding) |
| 71 | } |
| 72 | |
| 73 | func upgradeAvailableString(u types.OptionalBoolean) string { |
| 74 | switch { |
no test coverage detected