MCPcopy Create free account
hub / github.com/alceal/plotlars / open_file

Function open_file

crates/plotlars-plotters/src/render/mod.rs:313–326  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

311}
312
313fn open_file(path: &str) {
314 #[cfg(target_os = "macos")]
315 {
316 let _ = Command::new("open").arg(path).spawn();
317 }
318 #[cfg(target_os = "linux")]
319 {
320 let _ = Command::new("xdg-open").arg(path).spawn();
321 }
322 #[cfg(target_os = "windows")]
323 {
324 let _ = Command::new("cmd").args(["/c", "start", path]).spawn();
325 }
326}

Callers 1

plot_interactiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected