1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-16 09:18:21 +02:00
nushell/crates/nu-command
WindSoilder 6bee80dcd7
make reject support list input directly ()
# Description
Fixes:  

It's because `reject` and `select` command can't handle list of CellPath
input directly.
After this pr, the following should be ok:
```nushell
❯ [{'a': 1, 'b': 2, 'c': 3}, {'a': 1, 'b': 2, 'c': 3}] | reject ['a', 'b']
╭───┬───╮
│ # │ c │
├───┼───┤
│ 0 │ 3 │
│ 1 │ 3 │
╰───┴───╯
❯ [{'a': 1, 'b': 2, 'c': 3}, {'a': 1, 'b': 2, 'c': 3}] | select ['a', 'b']
╭───┬───┬───╮
│ # │ a │ b │
├───┼───┼───┤
│ 0 │ 1 │ 2 │
│ 1 │ 1 │ 2 │
╰───┴───┴───╯
```
2023-11-11 10:15:11 -06:00
..
src make reject support list input directly () 2023-11-11 10:15:11 -06:00
tests Refactor drop columns to fix issues () 2023-11-09 13:51:46 +01:00
Cargo.toml Bump indexmap from 2.0.2 to 2.1.0 () 2023-11-07 15:36:34 +00:00
LICENSE Fix rest of license year ranges () 2023-04-04 09:03:29 +12:00