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

Function bundleChannelsTable

internal/cli/bundle.go:540–554  ·  view source on GitHub ↗
(items []BundleChannelRecord)

Source from the content-addressed store, hash-verified

538}
539
540func bundleChannelsTable(items []BundleChannelRecord) string {
541 rows := make([][]string, 0, len(items))
542 for _, item := range items {
543 rows = append(rows, []string{
544 stringOrDash(item.Name),
545 formatBool(item.Primary),
546 stringOrDash(item.Description),
547 })
548 }
549 return renderHumanTable(
550 "Channels",
551 []string{bundleNameValue, "Primary", bundleDescriptionValue},
552 rows,
553 )
554}
555
556func bundleAgentsTable(items []BundleAgentRecord) string {
557 return renderHumanTable(

Callers 1

bundleActivationBundleFunction · 0.85

Calls 4

appendFunction · 0.85
stringOrDashFunction · 0.85
formatBoolFunction · 0.85
renderHumanTableFunction · 0.85

Tested by

no test coverage detected