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

Function writeSessionEventsOutput

internal/cli/session.go:655–664  ·  view source on GitHub ↗
(cmd *cobra.Command, events []SessionEventRecord)

Source from the content-addressed store, hash-verified

653}
654
655func writeSessionEventsOutput(cmd *cobra.Command, events []SessionEventRecord) error {
656 mode, err := resolveOutputFormat(cmd)
657 if err != nil {
658 return err
659 }
660 if mode == OutputJSONL {
661 return writeJSONLines(cmd, events)
662 }
663 return writeCommandOutput(cmd, sessionEventsBundle(events))
664}
665
666func newSessionHistoryCommand(deps commandDeps) *cobra.Command {
667 return &cobra.Command{

Callers 1

newSessionEventsCommandFunction · 0.85

Calls 4

resolveOutputFormatFunction · 0.85
writeJSONLinesFunction · 0.85
writeCommandOutputFunction · 0.85
sessionEventsBundleFunction · 0.85

Tested by

no test coverage detected