MCPcopy Index your code
hub / github.com/cli/cli / printRawComment

Function printRawComment

pkg/cmd/discussion/view/view.go:590–600  ·  view source on GitHub ↗
(out io.Writer, c client.DiscussionComment)

Source from the content-addressed store, hash-verified

588}
589
590func 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
602func labelList(labels []client.DiscussionLabel, cs *iostreams.ColorScheme) string {
603 if len(labels) == 0 {

Callers 2

printRawCommentsFunction · 0.85
printRawRepliesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected