printf formats a string to the configured output.
(format string, a ...any)
| 32 | |
| 33 | // printf formats a string to the configured output. |
| 34 | func (i *InspectCmd) printf(format string, a ...any) { |
| 35 | if _, err := fmt.Fprintf(i.Output, format, a...); err != nil { |
| 36 | // Fall back to stdout |
| 37 | i.printf(format, a...) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func (i *InspectCmd) Run() error { |
| 42 | // Check if the input is a file path |
no outgoing calls