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

Function bundleCatalogCounts

internal/cli/bundle.go:526–538  ·  view source on GitHub ↗
(item BundleCatalogRecord)

Source from the content-addressed store, hash-verified

524}
525
526func bundleCatalogCounts(item BundleCatalogRecord) (int, int, int, int) {
527 var agents int
528 var jobs int
529 var triggers int
530 var bridges int
531 for _, profile := range item.Profiles {
532 agents += profile.AgentCount
533 jobs += profile.JobCount
534 triggers += profile.TriggerCount
535 bridges += profile.BridgeCount
536 }
537 return agents, jobs, triggers, bridges
538}
539
540func bundleChannelsTable(items []BundleChannelRecord) string {
541 rows := make([][]string, 0, len(items))

Callers 1

bundleCatalogBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected