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

Method ExportData

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

Source from the content-addressed store, hash-verified

671}
672
673func (p ProjectItem) ExportData(_ []string) map[string]interface{} {
674 v := map[string]interface{}{
675 "id": p.ID(),
676 "title": p.Title(),
677 "body": p.Body(),
678 "type": p.Type(),
679 }
680 // Emulate omitempty.
681 if url := p.URL(); url != "" {
682 v["url"] = url
683 }
684 return v
685}
686
687// ProjectItems returns the items of a project. If the OwnerType is VIEWER, no login is required.
688// 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