mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Add reduce command (#700)
* Add reduce command * Fix example and missing test commands * Add forgotten file
This commit is contained in:
@ -2815,6 +2815,7 @@ pub fn parse_block_expression(
|
||||
let (output, err) = lite_parse(&output[amt_to_skip..]);
|
||||
error = error.or(err);
|
||||
|
||||
// TODO: Finish this
|
||||
if let SyntaxShape::Block(Some(v)) = shape {
|
||||
if signature.is_none() && v.len() == 1 {
|
||||
// We'll assume there's an `$it` present
|
||||
|
Reference in New Issue
Block a user