/// Runs the process, waiting for completion, and mapping non-success exit codes to an error.
Runs the process, waiting for completion, and mapping non-success exit codes to an error.
Runs the process waiting for completion and mapping non - success exit codes to an error .
pub fn exec(&self) {
		let mut command = self.build_command();
		let exit = command.status().expect(&format!("could not execute process {}", self));
		if !exit.success() {
			panic!("process didn't exit successfully: {}", self);
		}
	}
pub fn exec ( & self ) { let mut command = self . build_command ( ) ; let exit = command . status ( ) . expect ( & format ! ( " " self ) ) ; if ! exit . success ( ) { panic ! ( " " self ) ; } }
Runs the process, waiting for completion, and mapping non-success exit codes to an error.
Runs the process waiting for completion and mapping non - success exit codes to an error .
&self