MCPcopy
hub / github.com/owenthereal/ccat / Print

Method Print

ccat.go:21–27  ·  view source on GitHub ↗
(r io.Reader, w io.Writer)

Source from the content-addressed store, hash-verified

19}
20
21func (a AutoColorPrinter) Print(r io.Reader, w io.Writer) error {
22 if isatty.IsTerminal(uintptr(syscall.Stdout)) {
23 return ColorPrinter{a.ColorPalettes}.Print(r, w)
24 } else {
25 return PlainTextPrinter{}.Print(r, w)
26 }
27}
28
29type ColorPrinter struct {
30 ColorPalettes ColorPalettes

Callers

nothing calls this directly

Calls 1

PrintMethod · 0.65

Tested by

no test coverage detected