- Divide into sub-modules - Seperate the logic of different widgets - Better readability and maintainability
7 lines
159 B
Rust
7 lines
159 B
Rust
use std::process::{Child, Command};
|
|
|
|
// Run a shell command without blocking
|
|
pub fn run_cmd(cmd: &str) -> Option<Child> {
|
|
Command::new(cmd).spawn().ok()
|
|
}
|