MCPcopy
hub / github.com/cli/cli / copyArgs

Function copyArgs

pkg/cmd/project/copy/copy.go:122–135  ·  view source on GitHub ↗
(config copyConfig)

Source from the content-addressed store, hash-verified

120}
121
122func copyArgs(config copyConfig) (*copyProjectMutation, map[string]interface{}) {
123 return &copyProjectMutation{}, map[string]interface{}{
124 "input": githubv4.CopyProjectV2Input{
125 OwnerID: githubv4.ID(config.opts.ownerID),
126 ProjectID: githubv4.ID(config.opts.projectID),
127 Title: githubv4.String(config.opts.title),
128 IncludeDraftIssues: githubv4.NewBoolean(githubv4.Boolean(config.opts.includeDraftIssues)),
129 },
130 "firstItems": githubv4.Int(0),
131 "afterItems": (*githubv4.String)(nil),
132 "firstFields": githubv4.Int(0),
133 "afterFields": (*githubv4.String)(nil),
134 }
135}
136
137func printResults(config copyConfig, project queries.ProjectMutationQuery) error {
138 if !config.io.IsStdoutTTY() {

Callers 1

runCopyFunction · 0.85

Calls 2

IDMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected