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

Method ExportData

pkg/cmd/project/shared/queries/queries.go:640–652  ·  view source on GitHub ↗
(_ []string)

Source from the content-addressed store, hash-verified

638}
639
640func (p ProjectItem) ExportData(_ []string) map[string]interface{} {
641 v := map[string]interface{}{
642 "id": p.ID(),
643 "title": p.Title(),
644 "body": p.Body(),
645 "type": p.Type(),
646 }
647 // Emulate omitempty.
648 if url := p.URL(); url != "" {
649 v["url"] = url
650 }
651 return v
652}
653
654// ProjectItems returns the items of a project. If the OwnerType is VIEWER, no login is required.
655// If limit is 0, the default limit is used. The queryStr parameter is passed as a server-side

Calls 5

IDMethod · 0.95
TitleMethod · 0.95
BodyMethod · 0.95
TypeMethod · 0.95
URLMethod · 0.95

Tested by 3