(opts *ViewOptions, c *client.DiscussionComment)
| 621 | } |
| 622 | |
| 623 | func printHumanCommentAndReplies(opts *ViewOptions, c *client.DiscussionComment) error { |
| 624 | out := opts.IO.Out |
| 625 | cs := opts.IO.ColorScheme() |
| 626 | |
| 627 | if err := printHumanComment(opts, out, *c, "", false, false); err != nil { |
| 628 | return err |
| 629 | } |
| 630 | |
| 631 | if c.Replies.NextCursor != "" { |
| 632 | fmt.Fprintf(out, cs.Muted("To see more replies, pass: --after %s\n"), c.Replies.NextCursor) |
| 633 | fmt.Fprintln(out) |
| 634 | } |
| 635 | |
| 636 | return nil |
| 637 | } |
| 638 | |
| 639 | // printRawReplies writes the replies of a comment as a sequence of metadata |
| 640 | // blocks, without any fields of the parent comment. Replies are printed in |
no test coverage detected