mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:56:14 +02:00
Remove ListStream
type (#14425)
# Description List values and list streams have the same type (`list<>`). Rather, streaming is a separate property of the pipeline/command output. This PR removes the unnecessary `ListStream` type. # User-Facing Changes Should be none, except `random dice` now has a more specific output type.
This commit is contained in:
@ -23,7 +23,7 @@ impl PluginCommand for ForEach {
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name())
|
||||
.input_output_type(Type::ListStream, Type::Nothing)
|
||||
.input_output_type(Type::list(Type::Any), Type::Nothing)
|
||||
.required(
|
||||
"closure",
|
||||
SyntaxShape::Closure(Some(vec![SyntaxShape::Any])),
|
||||
|
@ -26,7 +26,7 @@ impl PluginCommand for Generate {
|
||||
|
||||
fn signature(&self) -> Signature {
|
||||
Signature::build(self.name())
|
||||
.input_output_type(Type::Nothing, Type::ListStream)
|
||||
.input_output_type(Type::Nothing, Type::list(Type::Any))
|
||||
.required(
|
||||
"initial",
|
||||
SyntaxShape::Any,
|
||||
|
Reference in New Issue
Block a user