Fix zip signature to mention closure input type (#12216)

# Description

`help zip` now reports:

```
other <one_of(any, closure())>: The other input, or closure returning a stream.
```

Thanks to @edhowland for pointing this out ❤️

# User-Facing Changes

- Doc change for zip

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting
This commit is contained in:
Devyn Cairns 2024-03-16 14:01:09 -07:00 committed by GitHub
parent 1cb5221f01
commit a5d03b1d6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,11 @@ impl Command for Zip {
Type::List(Box::new(Type::List(Box::new(Type::Any)))),
),
])
.required("other", SyntaxShape::Any, "The other input.")
.required(
"other",
SyntaxShape::OneOf(vec![SyntaxShape::Any, SyntaxShape::Closure(Some(vec![]))]),
"The other input, or closure returning a stream.",
)
.category(Category::Filters)
}