Skip to content

Commit

Permalink
Avoid subprocess spawning in the help command
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Mar 28, 2024
1 parent f8345c1 commit a3261dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ fn main() {

match &cli.command {
Some(Commands::RailsHelp {}) => {
let mut child = DockerClient::get_help(&ruby_version, &rails_version)
.spawn()
let status = DockerClient::get_help(&ruby_version, &rails_version)
.status()
.expect("Failed to execute process");
let status = child.wait().expect("failed to wait on child");

assert!(status.success());
}
Expand Down

0 comments on commit a3261dc

Please sign in to comment.