mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-16 16:30:06 +00:00
20 lines
277 B
Rust
20 lines
277 B
Rust
use std::process::Command;
|
|
|
|
#[cfg(not(windows))]
|
|
pub fn shell_command() -> Command {
|
|
let mut cmd = Command::new("sh");
|
|
|
|
cmd.arg("-c");
|
|
|
|
cmd
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
pub fn shell_command() -> Command {
|
|
let mut cmd = Command::new("cmd");
|
|
|
|
cmd.arg("/c");
|
|
|
|
cmd
|
|
}
|