printRawReplies writes the replies of a comment as a sequence of metadata blocks, without any fields of the parent comment. Replies are printed in chronological order regardless of how they were fetched.
(out io.Writer, c *client.DiscussionComment)
| 640 | // blocks, without any fields of the parent comment. Replies are printed in |
| 641 | // chronological order regardless of how they were fetched. |
| 642 | func printRawReplies(out io.Writer, c *client.DiscussionComment) error { |
| 643 | replies := slices.Clone(c.Replies.Comments) |
| 644 | if c.Replies.Direction == client.DiscussionCommentListDirectionBackward { |
| 645 | slices.Reverse(replies) |
| 646 | } |
| 647 | |
| 648 | for _, reply := range replies { |
| 649 | printRawComment(out, reply) |
| 650 | } |
| 651 | |
| 652 | return nil |
| 653 | } |
no test coverage detected