Resolve the output format, preferring the new `output_format` field and falling back to the legacy `json_output` bool.
(&self)
| 30 | /// Resolve the output format, preferring the new `output_format` field |
| 31 | /// and falling back to the legacy `json_output` bool. |
| 32 | pub fn format(&self) -> OutputFormat { |
| 33 | self.output_format.unwrap_or(if self.json_output { |
| 34 | OutputFormat::Json |
| 35 | } else { |
| 36 | OutputFormat::Text |
| 37 | }) |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | /// Response from daemon to CLI client. |
no outgoing calls
no test coverage detected