mail_sitter 0.1.0

A command-line tool for managing email services, providing utilities to automate and streamline email operations.
Documentation
pub mod browser {
    //! utils of open browser
    #[cfg(target_os = "macos")]
    pub fn open(url: &str) -> std::io::Result<()> {
        use std::process::Command;
        Command::new("open").arg(url).spawn()?;
        Ok(())
    }

    #[cfg(target_os = "windows")]
    pub fn open(url: &str) -> std::io::Result<()> {
        use std::process::Command;
        Command::new("cmd").args(&["/C", "start", url]).spawn()?;
        Ok(())
    }

    #[cfg(target_os = "linux")]
    pub fn open(url: &str) -> std::io::Result<()> {
        use std::process::Command;
        Command::new("xdg-open").arg(url).spawn()?;
        Ok(())
    }

    #[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]
    pub fn open(_url: &str) -> std::io::Result<()> {
        println!("Invalid operator");
        Ok(())
    }
}