()
| 53 | } |
| 54 | |
| 55 | func (f *PrintFlags) AllowedFormats() []string { |
| 56 | ret := []string{} |
| 57 | ret = append(ret, f.JSONPrintFlags.AllowedFormats()...) |
| 58 | ret = append(ret, f.JSONPathPrintFlags.AllowedFormats()...) |
| 59 | return ret |
| 60 | } |
| 61 | |
| 62 | // HasStructuredOutput returns true when the command is configured to emit a |
| 63 | // machine-readable format, either through an explicit flag or a default output. |