mirror of
https://github.com/nushell/nushell.git
synced 2025-05-01 08:34:26 +02:00
Update crates/nu-command/src/filters/where_.rs
Co-authored-by: Bahex <Bahex@users.noreply.github.com>
This commit is contained in:
parent
cdbcf83b57
commit
1da3beb1ca
@ -43,7 +43,10 @@ While where supports closure literals, they can not be read from a variable. To
|
||||
])
|
||||
.required(
|
||||
"condition",
|
||||
SyntaxShape::OneOf(vec![SyntaxShape::RowCondition, SyntaxShape::Closure(None)]),
|
||||
SyntaxShape::OneOf(vec![
|
||||
SyntaxShape::RowCondition,
|
||||
SyntaxShape::Closure(Some(vec![SyntaxShape::Any])),
|
||||
]),
|
||||
"Filter row condition or closure.",
|
||||
)
|
||||
.allow_variants_without_examples(true)
|
||||
|
Loading…
Reference in New Issue
Block a user