Automatically trim ends of stdin/stdout strings (#874)

This commit is contained in:
JT
2022-01-28 16:59:00 -05:00
committed by GitHub
parent c37f844644
commit 4c029d2545
9 changed files with 28 additions and 5 deletions

View File

@ -124,6 +124,7 @@ impl Command for Open {
RawStream::new(
Box::new(BufferedReader { input: buf_reader }),
ctrlc,
false,
call_span,
),
call_span,

View File

@ -362,6 +362,7 @@ fn response_to_buffer(
input: buffered_input,
}),
engine_state.ctrlc.clone(),
false,
span,
),
span,

View File

@ -243,7 +243,7 @@ impl ExternalCommand {
let receiver = ChannelReceiver::new(rx);
Ok(PipelineData::RawStream(
RawStream::new(Box::new(receiver), output_ctrlc, head),
RawStream::new(Box::new(receiver), output_ctrlc, true, head),
head,
None,
))

View File

@ -72,6 +72,7 @@ impl Command for Table {
.into_iter(),
),
ctrlc,
false,
head,
),
head,
@ -188,6 +189,7 @@ impl Command for Table {
stream,
}),
ctrlc,
false,
head,
),
head,