deepr_utils/
browser.rs

1use crate::constants;
2use std::process::Command;
3
4#[derive(Debug, Copy, Clone)]
5pub struct Browser {}
6
7impl Browser {
8    pub fn browse_edge_inprivate(url: &str) {
9        Command::new(constants::EDGE_DEFAULT_PATH_WSL)
10            .args([url, "-inprivate"])
11            .status()
12            .expect("process failed to execute");
13    }
14
15    pub fn browse_edge(url: &str) {
16        Command::new(constants::EDGE_DEFAULT_PATH_WSL)
17            .args([url])
18            .status()
19            .expect("process failed to execute");
20    }
21}