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

Function writeCommandOutputWithJSONL

internal/cli/network.go:1793–1802  ·  view source on GitHub ↗
(cmd *cobra.Command, bundle outputBundle, items []T)

Source from the content-addressed store, hash-verified

1791}
1792
1793func writeCommandOutputWithJSONL[T any](cmd *cobra.Command, bundle outputBundle, items []T) error {
1794 mode, err := resolveOutputFormat(cmd)
1795 if err != nil {
1796 return err
1797 }
1798 if mode == OutputJSONL {
1799 return writeJSONLines(cmd, items)
1800 }
1801 return writeCommandOutput(cmd, bundle)
1802}
1803
1804func networkThreadHumanRow(thread NetworkThreadRecord) []string {
1805 return []string{

Calls 3

resolveOutputFormatFunction · 0.85
writeJSONLinesFunction · 0.85
writeCommandOutputFunction · 0.85

Tested by

no test coverage detected