The successor of command-group is process-wrap. No further work will be done on command-group.
Extension to Command
to spawn in a process group.
[dependencies]
command-group = "5.0.1"
use std::process::Command;
use command_group::CommandGroup;
let mut child = Command::new("watch").arg("ls").group_spawn()?;
let status = child.wait()?;
dbg!(status);
[dependencies]
command-group = { version = "5.0.1", features = ["with-tokio"] }
tokio = { version = "1.10.0", features = ["full"] }
use tokio::process::Command;
use command_group::AsyncCommandGroup;
let mut child = Command::new("watch").arg("ls").group_spawn()?;
let status = child.wait().await?;
dbg!(status);
Also see the Examples!