mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 06:48:17 +02:00
"maybe text codec" version 2 (#871)
* Add a RawStream that can be binary or string * Finish up updating the into's
This commit is contained in:
@ -5,8 +5,8 @@ use std::{
|
||||
|
||||
use nu_engine::CallExt;
|
||||
use nu_protocol::{
|
||||
engine::Command, Example, PipelineData, ShellError, Signature, Span, Spanned, SyntaxShape,
|
||||
Value, ValueStream,
|
||||
engine::Command, Example, ListStream, PipelineData, ShellError, Signature, Span, Spanned,
|
||||
SyntaxShape, Value,
|
||||
};
|
||||
|
||||
use super::PathSubcommandArguments;
|
||||
@ -68,7 +68,7 @@ the output of 'path parse' and 'path split' subcommands."#
|
||||
Ok(PipelineData::Value(handle_value(val, &args, head), md))
|
||||
}
|
||||
PipelineData::ListStream(stream, md) => Ok(PipelineData::ListStream(
|
||||
ValueStream::from_stream(
|
||||
ListStream::from_stream(
|
||||
stream.map(move |val| handle_value(val, &args, head)),
|
||||
engine_state.ctrlc.clone(),
|
||||
),
|
||||
|
Reference in New Issue
Block a user