15 stable releases (4 major)
5.0.1 | Nov 18, 2023 |
---|---|
4.1.0 | Nov 4, 2023 |
3.0.0 | Oct 30, 2023 |
2.1.1 |
|
1.0.4 |
|
#33 in Operating systems
92,949 downloads per month
Used in 67 crates
(16 directly)
165KB
1K
SLoC
Command Group
Extension to Command
to spawn in a process group.
- API documentation.
- Dual-licensed with Apache 2.0 and MIT.
- Minimum Supported Rust Version: 1.68.0.
- Only the last five stable versions are supported.
- MSRV increases within that range at publish time will not incur major version bumps.
Quick start
[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);
Async: Tokio
[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!
Dependencies
~1.5–9.5MB
~96K SLoC