(out io.Writer, c client.DiscussionComment)
| 588 | } |
| 589 | |
| 590 | func printRawComment(out io.Writer, c client.DiscussionComment) { |
| 591 | fmt.Fprintf(out, "author:\t%s\n", c.Author.Login) |
| 592 | fmt.Fprintf(out, "created:\t%s\n", c.CreatedAt.Format(time.RFC3339)) |
| 593 | fmt.Fprintf(out, "url:\t%s\n", c.URL) |
| 594 | if c.IsAnswer { |
| 595 | fmt.Fprintln(out, "answer:\ttrue") |
| 596 | } |
| 597 | fmt.Fprintln(out, "--") |
| 598 | fmt.Fprintln(out, c.Body) |
| 599 | fmt.Fprintln(out, "--") |
| 600 | } |
| 601 | |
| 602 | func labelList(labels []client.DiscussionLabel, cs *iostreams.ColorScheme) string { |
| 603 | if len(labels) == 0 { |
no outgoing calls
no test coverage detected