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

Function printResultLine

pkg/cmd/issue/artifact/shared/results.go:100–106  ·  view source on GitHub ↗

printResultLine prints a piped result line. Every line has all five tab-separated columns, even empty ones, like gh pr checks rows.

(w io.Writer, status string, r Result, reason string)

Source from the content-addressed store, hash-verified

98// printResultLine prints a piped result line. Every line has all five
99// tab-separated columns, even empty ones, like gh pr checks rows.
100func printResultLine(w io.Writer, status string, r Result, reason string) {
101 var number string
102 if r.Number > 0 {
103 number = strconv.Itoa(r.Number)
104 }
105 fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", status, number, r.Name, r.Source, reason)
106}
107
108// FailureReason returns what a result line says about err. The line already
109// names the artifact, so an error from an artifact request gives only the

Callers 5

PrintSuccessFunction · 0.85
PrintSkipFunction · 0.85
PrintUnchangedFunction · 0.85
PrintFailureFunction · 0.85
PrintPartialFailureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected