nushell/crates/nu-command/src/platform
Antoine Stevan fe9f732c5f
REFACTOR: make input list a tiny bit tighter (#9115)
related to #8963
cc/ @melMass 

# Description
just a little refactoring attempt for `input list` 😌 

i wanted to refactor even more, but `Select`, `MultiSelect` and
`FuzzySelect` do not share a common trait, i could not find a nice way
to reduce the big `if` block...

# User-Facing Changes
```
$nothing
```

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
-  `toolkit test`
-  `toolkit test stdlib`

# After Submitting
```
$nothing
```
2023-05-08 12:45:55 -05:00
..
ansi FEATURE: make the link in the ansi extra usage an ANSI link (#8795) 2023-04-07 13:39:51 -05:00
input REFACTOR: make input list a tiny bit tighter (#9115) 2023-05-08 12:45:55 -05:00
clear.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
dir_info.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
du.rs Box ShellError in Value::Error (#8375) 2023-03-12 09:57:27 +01:00
kill.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
mod.rs adds a list subcommand to input (interactive selections) (#8963) 2023-05-04 19:14:41 +02:00
sleep.rs Add helper method to check whether ctrl+c was pressed, adopt it (#7482) 2022-12-15 09:39:24 -08:00
term_size.rs Uniformize usage() and extra_usage() message ending for commands helper. (#8268) 2023-02-28 21:33:02 -08:00