#![doc(
html_logo_url = "https://gitlab.com/andrew_ryan/doe/-/raw/master/html_logo.svg",
html_favicon_url = "https://gitlab.com/andrew_ryan/doe/-/raw/master/html_favicon.svg"
)]
pub mod utils;
pub mod macros;
pub mod structs;
pub mod traits;
pub mod time;
pub mod fs;
pub mod clipboard;
pub mod mouse;
pub mod keyboard;
pub use structs::structs::*;
pub use macros::macros::*;
pub use traits::traits::*;
pub use time::time::*;
pub use fs::fs::*;
pub type DynError = Result<(),Box<dyn std::error::Error>>;
pub fn system(command: impl ToString) -> std::io::Result<()> {
use std::process::Command;
if cfg!(target_os = "windows") {
Command::new("powershell")
.arg("-Command")
.arg(&command.to_string())
.status()?;
}else{
Command::new("sh")
.arg("-c")
.arg(&command.to_string())
.status()?;
}
Ok(())
}