()
| 148 | |
| 149 | #[cfg(all(windows, feature = "wsl"))] |
| 150 | fn fetch_wsl2_distros() -> Vec<String> { |
| 151 | wsl_cmd(&["-l", "-q"]) |
| 152 | .map(|stdout| { |
| 153 | stdout |
| 154 | .split('\n') |
| 155 | .filter(|s| !s.trim().is_empty()) |
| 156 | .map(|s| s.trim().to_string()) |
| 157 | .collect() |
| 158 | }) |
| 159 | .unwrap_or_default() |
| 160 | } |
| 161 | |
| 162 | pub fn config_ui( |
| 163 | ui: &mut egui::Ui, |
no test coverage detected