mirror of
https://github.com/nushell/nushell.git
synced 2025-05-28 18:41:39 +00:00
# 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.
Nushell core libraries and plugins
These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.
Foundational libraries are split into two kinds of crates:
- Core crates - those crates that work together to build the Nushell language engine
- Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.
Plugins are likewise also split into two types:
- Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
- Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.