Skip to content

Commit e4c6feb

Browse files
committed
Prefer print function
1 parent 6d161ec commit e4c6feb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

ruby_executable/src/bin/ruby_check.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,15 @@ fn ruby_check(args: &RubyArgs) -> Result<(), Box<dyn Error>> {
6060
.join(" && "),
6161
);
6262

63-
let mut cmd_stream = log.bullet("Versions");
63+
print::bullet("Versions");
64+
let output = print::sub_stream_cmd(cmd)?;
6465

65-
let result = cmd_stream.stream_with(
66-
format!("Running {}", style::command(cmd.name())),
67-
|stdout, stderr| cmd.stream_output(stdout, stderr),
68-
)?;
69-
70-
cmd_stream.done().done();
7166
eprintln!();
7267

7368
// Print results to STDOUT for github summary
7469
println!("## Ruby {version} linux/{arch} for {base_image}");
7570
println!();
76-
println!("{}", result.stdout_lossy());
71+
println!("{}", output.stdout_lossy());
7772

7873
Ok(())
7974
}

0 commit comments

Comments
 (0)