MCPcopy Create free account
hub / github.com/algolia/cli / IsNoCompatiblePrinterError

Function IsNoCompatiblePrinterError

pkg/cmdutil/print_flags.go:16–23  ·  view source on GitHub ↗

IsNoCompatiblePrinterError returns true if it is a not a compatible printer otherwise it will return false

(err error)

Source from the content-addressed store, hash-verified

14// IsNoCompatiblePrinterError returns true if it is a not a compatible printer
15// otherwise it will return false
16func IsNoCompatiblePrinterError(err error) bool {
17 if err == nil {
18 return false
19 }
20
21 _, ok := err.(NoCompatiblePrinterError)
22 return ok
23}
24
25type PrintFlags struct {
26 JSONPrintFlags *JSONPrintFlags

Callers 1

ToPrinterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected