MCPcopy
hub / github.com/cli/cli / closeArgs

Function closeArgs

pkg/cmd/project/close/close.go:112–124  ·  view source on GitHub ↗
(config closeConfig)

Source from the content-addressed store, hash-verified

110}
111
112func closeArgs(config closeConfig) (*updateProjectMutation, map[string]interface{}) {
113 closed := !config.opts.reopen
114 return &updateProjectMutation{}, map[string]interface{}{
115 "input": githubv4.UpdateProjectV2Input{
116 ProjectID: githubv4.ID(config.opts.projectID),
117 Closed: githubv4.NewBoolean(githubv4.Boolean(closed)),
118 },
119 "firstItems": githubv4.Int(0),
120 "afterItems": (*githubv4.String)(nil),
121 "firstFields": githubv4.Int(0),
122 "afterFields": (*githubv4.String)(nil),
123 }
124}
125
126func printResults(config closeConfig, project queries.ProjectMutationQuery) error {
127 if !config.io.IsStdoutTTY() {

Callers 1

runCloseFunction · 0.85

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected