(hooks []HookCatalogRecord)
| 234 | } |
| 235 | |
| 236 | func hookInfoBundle(hooks []HookCatalogRecord) outputBundle { |
| 237 | return outputBundle{ |
| 238 | jsonValue: hooks, |
| 239 | human: func() (string, error) { |
| 240 | return renderHookInfoHuman(hooks) |
| 241 | }, |
| 242 | toon: func() (string, error) { |
| 243 | return renderHookInfoToon(hooks) |
| 244 | }, |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | func renderHookInfoHuman(hooks []HookCatalogRecord) (string, error) { |
| 249 | blocks := make([]string, 0, len(hooks)) |
no test coverage detected