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

Method Write

pkg/iostreams/iostreams.go:620–626  ·  view source on GitHub ↗
(d []byte)

Source from the content-addressed store, hash-verified

618}
619
620func (w *pagerWriter) Write(d []byte) (int, error) {
621 n, err := w.WriteCloser.Write(d)
622 if err != nil && (errors.Is(err, io.ErrClosedPipe) || isEpipeError(err)) {
623 return n, &ErrClosedPagerPipe{err}
624 }
625 return n, err
626}
627
628// fdWriter represents a wrapped stdout Writer that preserves the original file descriptor
629type fdWriter struct {

Callers

nothing calls this directly

Calls 2

isEpipeErrorFunction · 0.70
WriteMethod · 0.65

Tested by

no test coverage detected