MCPcopy Create free account
hub / github.com/cli/cli / Export

Method Export

pkg/cmd/discussion/client/types.go:165–171  ·  view source on GitHub ↗

Export returns the label as a map for JSON output.

()

Source from the content-addressed store, hash-verified

163
164// Export returns the label as a map for JSON output.
165func (l DiscussionLabel) Export() map[string]any {
166 return map[string]any{
167 "id": l.ID,
168 "name": l.Name,
169 "color": l.Color,
170 }
171}
172
173// DiscussionComment represents a comment or reply on a discussion.
174type DiscussionComment struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected