mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 02:48:00 +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:
@ -2,7 +2,7 @@ use nu_engine::CallExt;
|
||||
use nu_protocol::ast::Call;
|
||||
use nu_protocol::engine::{Command, EngineState, Stack};
|
||||
use nu_protocol::{
|
||||
Category, Example, PipelineData, ShellError, Signature, SyntaxShape, Value, ValueStream,
|
||||
Category, Example, ListStream, PipelineData, ShellError, Signature, SyntaxShape, Value,
|
||||
};
|
||||
use rand::prelude::{thread_rng, Rng};
|
||||
|
||||
@ -80,7 +80,7 @@ fn dice(
|
||||
});
|
||||
|
||||
Ok(PipelineData::ListStream(
|
||||
ValueStream::from_stream(iter, engine_state.ctrlc.clone()),
|
||||
ListStream::from_stream(iter, engine_state.ctrlc.clone()),
|
||||
None,
|
||||
))
|
||||
}
|
||||
|
Reference in New Issue
Block a user