Crate release version Crate license: Apache 2.0 or MIT CI status

Command Group

Extension to Command to spawn in a process group.

Quick start

toml [dependencies] command-group = "2.0.0"

```rust use std::process::Command; use command_group::CommandGroup;

let mut child = Command::new("watch").arg("ls").group_spawn()?; let status = child.wait()?; dbg!(status); ```

Async: Tokio

toml [dependencies] command-group = { version = "2.0.0", features = ["with-tokio"] } tokio = { version = "1.10.0", features = ["full"] }

```rust 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); ```