# 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 |
||
---|---|---|
.. | ||
ansi | ||
input | ||
clear.rs | ||
dir_info.rs | ||
du.rs | ||
is_terminal.rs | ||
kill.rs | ||
mod.rs | ||
sleep.rs | ||
term_size.rs | ||
ulimit.rs | ||
whoami.rs |