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

Struct BinaryTerminalError

pkg/iostreams/content.go:40–42  ·  view source on GitHub ↗

BinaryTerminalError reports that binary content was about to be written to a terminal, where it is unreadable and may carry control bytes.

Source from the content-addressed store, hash-verified

38// BinaryTerminalError reports that binary content was about to be written to a
39// terminal, where it is unreadable and may carry control bytes.
40type BinaryTerminalError struct {
41 MIME string
42}
43
44func (e BinaryTerminalError) Error() string {
45 return fmt.Sprintf("refusing to output binary content (%s) to the terminal", e.MIME)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected