MCPcopy Index your code
hub / github.com/cloudfoundry/cli / displayTable

Method displayTable

command/v7/services_command.go:59–71  ·  view source on GitHub ↗
(instances []v7action.ServiceInstance)

Source from the content-addressed store, hash-verified

57}
58
59func (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
73func upgradeAvailableString(u types.OptionalBoolean) string {
74 switch {

Callers 1

ExecuteMethod · 0.95

Calls 4

AppendRowMethod · 0.95
NewServicesTableFunction · 0.85
DisplayTextMethod · 0.65

Tested by

no test coverage detected