Skip to content

Commit ae49d52

Browse files
committed
clean up child APIs
unpublish internal APIs
1 parent 3c52deb commit ae49d52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/child.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl CmdChildren {
104104
}
105105

106106
#[derive(Debug)]
107-
pub enum CmdChild {
107+
pub(crate) enum CmdChild {
108108
ProcChild {
109109
child: Child,
110110
cmd: String,
@@ -124,7 +124,7 @@ pub enum CmdChild {
124124
}
125125

126126
impl CmdChild {
127-
pub fn wait(self, is_last: bool) -> CmdResult {
127+
fn wait(self, is_last: bool) -> CmdResult {
128128
let pipefail = std::env::var("CMD_LIB_PIPEFAIL") != Ok("0".into());
129129
let check_result = |result| {
130130
if let Err(e) = result {
@@ -178,7 +178,7 @@ impl CmdChild {
178178
Ok(())
179179
}
180180

181-
pub fn wait_with_output(self) -> Result<Vec<u8>> {
181+
fn wait_with_output(self) -> Result<Vec<u8>> {
182182
match self {
183183
ProcChild { child, cmd, stderr } => {
184184
Self::log_stderr_output(stderr);
@@ -239,7 +239,7 @@ impl CmdChild {
239239
}
240240
}
241241

242-
pub fn get_full_cmd(children: &[Self]) -> String {
242+
fn get_full_cmd(children: &[Self]) -> String {
243243
children
244244
.iter()
245245
.map(|child| match child {

0 commit comments

Comments
 (0)