mirror of
https://github.com/nushell/nushell.git
synced 2024-12-24 16:09:11 +01:00
9fa2b77611
# Description When using a table (or a list of records) as input to `input list`, allow specifying a cellpath for the field/column to use as the display value. For instance, at the moment, using a table as input results in the following: ``` ❯ [[name price]; [Banana 12] [Kiwi 4] [Pear 7]] | input list > {name: Banana, price: 12} {name: Kiwi, price: 4} {name: Pear, price: 7} ``` With the new `--display` flag introduced by this PR, you can do the following: ``` ❯ [[name price]; [Banana 12] [Kiwi 4] [Pear 7]] | input list -d name > Banana Kiwi Pear ``` Note that it doesn't change what gets returned after selecting an item: the full row/record is still returned. # User-Facing Changes A new optional flag is allowed. # Tests + Formatting # After Submitting |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml | ||
LICENSE |