(cmd *cobra.Command, events []SessionEventRecord)
| 653 | } |
| 654 | |
| 655 | func 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 | |
| 666 | func newSessionHistoryCommand(deps commandDeps) *cobra.Command { |
| 667 | return &cobra.Command{ |
no test coverage detected