File: builder.rs

package info (click to toggle)
rust-command-group 5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 480 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
//! This example shows the basic usage of the sync version
//! of the `group` method, and collects the exit code. The
//! group builder gives more control over the process group.

use command_group::CommandGroup;

fn main() {
	let mut handle = std::process::Command::new("ls").group().spawn().unwrap();
	println!("{:?}", handle);
	let exit_code = handle.wait();
	println!("{:?}", exit_code);
}