MCPcopy Create free account
hub / github.com/compozy/agh / bundleBridgesTable

Function bundleBridgesTable

internal/cli/bundle.go:597–619  ·  view source on GitHub ↗
(items []BundleBridgeRecord)

Source from the content-addressed store, hash-verified

595}
596
597func 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
621func bundleInventoryTable(items []BundleInventoryRecord) string {
622 return renderHumanTable(

Callers 1

bundleActivationBundleFunction · 0.85

Calls 3

appendFunction · 0.85
stringOrDashFunction · 0.85
renderHumanTableFunction · 0.85

Tested by

no test coverage detected