Print all available settings
(os: &Os, format: OutputFormat)
| 172 | |
| 173 | /// Print all available settings |
| 174 | fn print_all_settings(os: &Os, format: OutputFormat) -> Result<()> { |
| 175 | let settings = collect_settings(os); |
| 176 | |
| 177 | match format { |
| 178 | OutputFormat::Plain => { |
| 179 | print_settings_plain(&settings); |
| 180 | Ok(()) |
| 181 | }, |
| 182 | OutputFormat::Json => print_settings_json(&settings, false), |
| 183 | OutputFormat::JsonPretty => print_settings_json(&settings, true), |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | impl SettingsArgs { |
| 188 | pub async fn execute(&self, os: &mut Os) -> Result<ExitCode> { |
no test coverage detected