Skip to content

Commit 1023697

Browse files
committed
Add a few comments
1 parent 10e8d66 commit 1023697

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tools/run-make-support/src/command.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ use std::io::Write;
44
use std::ops::{Deref, DerefMut};
55
use std::process::{Command as StdCommand, ExitStatus, Output, Stdio};
66

7+
/// This is a custom command wrapper that simplifies working with commands
8+
/// and makes it easier to ensure that we check the exit status of executed
9+
/// processes.
710
#[derive(Debug)]
811
pub struct Command {
912
cmd: StdCommand,
@@ -83,6 +86,8 @@ impl DerefMut for Command {
8386
}
8487

8588
/// Represents the result of an executed process.
89+
/// The various `assert_` helper methods should preferably be used for
90+
/// checking the contents of stdout/stderr.
8691
pub struct CompletedProcess {
8792
output: Output,
8893
}

0 commit comments

Comments
 (0)