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

Function hookEventsBundle

internal/cli/hooks.go:341–368  ·  view source on GitHub ↗
(events []HookEventRecord)

Source from the content-addressed store, hash-verified

339}
340
341func hookEventsBundle(events []HookEventRecord) outputBundle {
342 return listBundle(
343 events,
344 events,
345 "Hook Events",
346 []string{hooksEventValue, "Family", "Sync", "Payload", "Patch"},
347 hooksEventsKey,
348 []string{hooksEventKey, "family", "sync_eligible", "payload_schema", "patch_schema"},
349 func(item HookEventRecord) []string {
350 return []string{
351 stringOrDash(item.Event),
352 stringOrDash(item.Family),
353 strconv.FormatBool(item.SyncEligible),
354 stringOrDash(item.PayloadSchema),
355 stringOrDash(item.PatchSchema),
356 }
357 },
358 func(item HookEventRecord) []string {
359 return []string{
360 item.Event,
361 item.Family,
362 strconv.FormatBool(item.SyncEligible),
363 item.PayloadSchema,
364 item.PatchSchema,
365 }
366 },
367 )
368}
369
370func hookRunsBundle(runs []HookRunRecord) outputBundle {
371 return listBundle(

Callers 1

newHooksEventsCommandFunction · 0.85

Calls 2

listBundleFunction · 0.85
stringOrDashFunction · 0.85

Tested by

no test coverage detected