MCPcopy
hub / github.com/cli/cli / printResults

Function printResults

pkg/cmd/project/link/link.go:226–233  ·  view source on GitHub ↗
(config linkConfig, linkedTarget string)

Source from the content-addressed store, hash-verified

224}
225
226func printResults(config linkConfig, linkedTarget string) error {
227 if !config.io.IsStdoutTTY() {
228 return nil
229 }
230
231 _, err := fmt.Fprintf(config.io.Out, "Linked '%s/%s' to project #%d '%s'\n", config.opts.owner, linkedTarget, config.opts.number, config.opts.projectTitle)
232 return err
233}

Callers 2

linkRepoFunction · 0.70
linkTeamFunction · 0.70

Calls 1

IsStdoutTTYMethod · 0.80

Tested by

no test coverage detected