mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:45:59 +02:00
Fix external extra (#4777)
* Fix empty table from externals * Fix empty table from externals
This commit is contained in:
@ -67,7 +67,7 @@ impl Command for Table {
|
||||
PipelineData::ExternalStream { .. } => Ok(input),
|
||||
PipelineData::Value(Value::Binary { val, .. }, ..) => {
|
||||
Ok(PipelineData::ExternalStream {
|
||||
stdout: RawStream::new(
|
||||
stdout: Some(RawStream::new(
|
||||
Box::new(
|
||||
vec![Ok(format!("{}\n", nu_pretty_hex::pretty_hex(&val))
|
||||
.as_bytes()
|
||||
@ -76,7 +76,7 @@ impl Command for Table {
|
||||
),
|
||||
ctrlc,
|
||||
head,
|
||||
),
|
||||
)),
|
||||
stderr: None,
|
||||
exit_code: None,
|
||||
span: head,
|
||||
@ -269,7 +269,7 @@ fn handle_row_stream(
|
||||
let head = call.head;
|
||||
|
||||
Ok(PipelineData::ExternalStream {
|
||||
stdout: RawStream::new(
|
||||
stdout: Some(RawStream::new(
|
||||
Box::new(PagingTableCreator {
|
||||
row_offset,
|
||||
config,
|
||||
@ -279,7 +279,7 @@ fn handle_row_stream(
|
||||
}),
|
||||
ctrlc,
|
||||
head,
|
||||
),
|
||||
)),
|
||||
stderr: None,
|
||||
exit_code: None,
|
||||
span: head,
|
||||
|
Reference in New Issue
Block a user