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

Method Printf

pkg/cmd/attestation/io/handler.go:33–38  ·  view source on GitHub ↗

Printf writes the formatted arguments to the stderr writer.

(f string, v ...any)

Source from the content-addressed store, hash-verified

31
32// Printf writes the formatted arguments to the stderr writer.
33func (h *Handler) Printf(f string, v ...any) (int, error) {
34 if !h.IO.IsStdoutTTY() {
35 return 0, nil
36 }
37 return fmt.Fprintf(h.IO.ErrOut, f, v...)
38}
39
40func (h *Handler) OutPrintf(f string, v ...any) (int, error) {
41 return fmt.Fprintf(h.IO.Out, f, v...)

Callers

nothing calls this directly

Calls 1

IsStdoutTTYMethod · 0.80

Tested by

no test coverage detected