MCPcopy Index your code
hub / github.com/encounter/objdiff / fetch_wsl2_distros

Function fetch_wsl2_distros

objdiff-gui/src/views/config.rs:150–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148
149#[cfg(all(windows, feature = "wsl"))]
150fn 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
162pub fn config_ui(
163 ui: &mut egui::Ui,

Callers 1

split_obj_config_uiFunction · 0.85

Calls 2

wsl_cmdFunction · 0.85
splitMethod · 0.80

Tested by

no test coverage detected