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

Method Export

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

Export returns the author as a map for JSON output.

()

Source from the content-addressed store, hash-verified

127
128// Export returns the author as a map for JSON output.
129func (a DiscussionActor) Export() map[string]any {
130 return map[string]any{
131 "id": a.ID,
132 "login": a.Login,
133 "name": a.Name,
134 }
135}
136
137// DiscussionCategory represents a discussion category within a repository.
138type DiscussionCategory struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected