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

Function reactionGroupList

pkg/cmd/discussion/view/view.go:61–74  ·  view source on GitHub ↗
(groups []client.ReactionGroup)

Source from the content-addressed store, hash-verified

59}
60
61func reactionGroupList(groups []client.ReactionGroup) string {
62 var parts []string
63 for _, g := range groups {
64 if g.TotalCount == 0 {
65 continue
66 }
67 emoji := reactionEmoji[g.Content]
68 if emoji == "" {
69 emoji = g.Content
70 }
71 parts = append(parts, fmt.Sprintf("%s %d", emoji, g.TotalCount))
72 }
73 return strings.Join(parts, " • ")
74}
75
76// ViewOptions holds the configuration for the view command.
77type ViewOptions struct {

Callers 2

printHumanViewFunction · 0.85
printHumanCommentFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected