Skip to content
Myr

Restun exit code for generate_and_execute?

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by fusillicode · committed by David Peter · parent 2f18903 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/exec/mod.rs+2 added-2 removed
144 unmodified lines
145 /// Generates and executes a command.146 ///147 /// Using the internal `args` field, and a supplied `input` variable, a `Command` will be148 /// build. Once all arguments have been processed, the command is executed.149 pub fn generate_and_execute(&self, input: &Path, out_perm: Arc<Mutex<()>>) {149 pub fn generate_and_execute(&self, input: &Path, out_perm: Arc<Mutex<()>>) -> ExitCode {150 let input = Self::prepare_path(input);151152 let mut cmd = Command::new(self.args[0].generate(&input).as_ref());153 for arg in &self.args[1..] {154 cmd.arg(arg.generate(&input).as_ref());155 }156157 execute_command(cmd, &out_perm);157 execute_command(cmd, &out_perm)158 }159160 pub fn in_batch_mode(&self) -> bool {161 self.mode == ExecutionMode::Batch
190 unmodified lines