nushell/crates/nu-command/tests
raccmonteiro f46c45343a
uniq code refactoring (#7188)
# Description

While trying to add a new `uniq-by` command I refactored the `uniq`
command code to understand it and try to reuse. I think this is more
compact and easier to understand.
The part that I think it's a little confusing in this refactor is the
conditions inside `.filters()`, for example: `!flag_show_repeated ||
(value.1 > 1)`. I could use `if (flag_show_repeated) {value.1 > 1} else
{true}` but it is more verbose, what do you think?

PS: Not sure if you like this kind of PR, sorry if not.

# Tests + Formatting

I also added a test where the `uniq` has a table as input.
2022-11-23 11:18:13 +01:00
..
commands uniq code refactoring (#7188) 2022-11-23 11:18:13 +01:00
format_conversions Fixed json parsing (#7175) 2022-11-23 17:00:00 +13:00
main.rs Parser refactoring for improving pipelines (#7162) 2022-11-19 10:46:48 +13:00