forked from extern/nushell
[Chore] cleanup in where
implementation (#7679)
- Remove commented out example that is unnecessary after #7365 - remove unnecessary closure map
This commit is contained in:
parent
75cb3fcc5f
commit
429127793f
@ -128,8 +128,8 @@ not supported."#
|
|||||||
Err(err) => Some(Value::Error { error: err }),
|
Err(err) => Some(Value::Error { error: err }),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.into_pipeline_data(ctrlc))
|
.into_pipeline_data(ctrlc)
|
||||||
.map(|x| x.set_metadata(metadata))
|
.set_metadata(metadata))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn examples(&self) -> Vec<Example> {
|
fn examples(&self) -> Vec<Example> {
|
||||||
@ -174,25 +174,6 @@ not supported."#
|
|||||||
example: "ls | where modified >= (date now) - 2wk",
|
example: "ls | where modified >= (date now) - 2wk",
|
||||||
result: None,
|
result: None,
|
||||||
},
|
},
|
||||||
// TODO: This should work but does not. (Note that `Let` must be present in the working_set in `example_test.rs`).
|
|
||||||
// See https://github.com/nushell/nushell/issues/7034
|
|
||||||
// Example {
|
|
||||||
// description: "List all numbers above 3, using an existing closure condition",
|
|
||||||
// example: "let a = {$in > 3}; [1, 2, 5, 6] | where -b $a",
|
|
||||||
// result: Some(Value::List {
|
|
||||||
// vals: vec![
|
|
||||||
// Value::Int {
|
|
||||||
// val: 5,
|
|
||||||
// span: Span::test_data(),
|
|
||||||
// },
|
|
||||||
// Value::Int {
|
|
||||||
// val: 6,
|
|
||||||
// span: Span::test_data(),
|
|
||||||
// },
|
|
||||||
// ],
|
|
||||||
// span: Span::test_data(),
|
|
||||||
// }),
|
|
||||||
// },
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user