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

Function printResults

pkg/cmd/project/mark-template/mark_template.go:153–165  ·  view source on GitHub ↗
(config markTemplateConfig, project queries.ProjectMutationQuery)

Source from the content-addressed store, hash-verified

151}
152
153func printResults(config markTemplateConfig, project queries.ProjectMutationQuery) error {
154 if !config.io.IsStdoutTTY() {
155 return nil
156 }
157
158 if config.opts.undo {
159 _, err := fmt.Fprintf(config.io.Out, "Unmarked project %d as a template.\n", project.Number)
160 return err
161 }
162
163 _, err := fmt.Fprintf(config.io.Out, "Marked project %d as a template.\n", project.Number)
164 return err
165}

Callers 1

runMarkTemplateFunction · 0.70

Calls 1

IsStdoutTTYMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…