nushell/crates
siedentop bce6f5a3e6
Uniq: --count flag to count occurences (#2017)
* uniq: Add counting option (WIP!)

Usage:

fetch https://raw.githubusercontent.com/timbray/topfew/master/test/data/access-1k | lines | wrap item | uniq | sort-by count | last 10

* uniq: Add first test

* uniq: Re-enable the non-counting variant.

* uniq: Also handle primitive lines.

* uniq: Update documentation

* uniq: Final comment about error handling. Let's get some feedback

* uniq: Address review comments.

Not happy with the way I create a TypeError. There must be a cleaner
way. Anyway, good for shipping.

* uniq: Use Labeled_error as suggested by jturner in chat.

* uniq: Return error directly.

Co-authored-by: Christoph Siedentop <christoph@siedentop.name>
2020-06-21 12:22:06 +12:00
..
nu-build Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu-cli Uniq: --count flag to count occurences (#2017) 2020-06-21 12:22:06 +12:00
nu-errors Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu-parser Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu-plugin issue1332 - Fix for yamls with unquoted double curly braces (#1988) 2020-06-17 07:12:04 +12:00
nu-protocol Refactoring and more group-by flexibility. 2020-06-17 13:34:17 -05:00
nu-source Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu-table Fix wrap of carriage returns in cells (#2027) 2020-06-21 09:33:58 +12:00
nu-test-support Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
nu-value-ext Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_binaryview Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_fetch Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_inc Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_match Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_post Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_ps Upgrade heim to 0.1.0-beta.3 (#2019) 2020-06-21 06:55:16 +12:00
nu_plugin_start Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00
nu_plugin_sys Upgrade heim to 0.1.0-beta.3 (#2019) 2020-06-21 06:55:16 +12:00
nu_plugin_textview Finish move to nu-table (#2025) 2020-06-21 07:25:07 +12:00
nu_plugin_tree Bump to 0.15.1 (#1984) 2020-06-15 09:54:30 +12:00