Only trim prompt (#876)

* Only trim the output for prompts

* Only remove the last newline
This commit is contained in:
JT
2022-01-28 18:22:09 -05:00
committed by GitHub
parent 4c029d2545
commit e91d8655c6
8 changed files with 21 additions and 22 deletions

View File

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

View File

@ -362,7 +362,6 @@ 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, true, head),
RawStream::new(Box::new(receiver), output_ctrlc, head),
head,
None,
))

View File

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