(items []BundleBridgeRecord)
| 595 | } |
| 596 | |
| 597 | func bundleBridgesTable(items []BundleBridgeRecord) string { |
| 598 | rows := make([][]string, 0, len(items)) |
| 599 | for _, item := range items { |
| 600 | rows = append(rows, []string{ |
| 601 | stringOrDash(item.Name), |
| 602 | stringOrDash(item.ExtensionName), |
| 603 | stringOrDash(item.Platform), |
| 604 | stringOrDash(item.DisplayName), |
| 605 | strconv.Itoa(len(item.SecretSlots)), |
| 606 | }) |
| 607 | } |
| 608 | return renderHumanTable( |
| 609 | "Bridges", |
| 610 | []string{ |
| 611 | bundleNameValue, |
| 612 | bridgeExtensionValue, |
| 613 | bundlePlatformValue, |
| 614 | "Display", |
| 615 | "Secret Slots", |
| 616 | }, |
| 617 | rows, |
| 618 | ) |
| 619 | } |
| 620 | |
| 621 | func bundleInventoryTable(items []BundleInventoryRecord) string { |
| 622 | return renderHumanTable( |
no test coverage detected