nushell/crates/nu-cli/src
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
..
commands Uniq: --count flag to count occurences (#2017) 2020-06-21 12:22:06 +12:00
data Nu table (#2015) 2020-06-20 15:41:53 +12:00
env Nu table (#2015) 2020-06-20 15:41:53 +12:00
evaluate Allow echo to iterate ranges (#1905) 2020-05-28 06:07:53 +12:00
shell Last batch of removing async_stream (#1983) 2020-06-15 09:00:42 +12:00
stream Another batch of removing async_stream (#1981) 2020-06-14 11:54:35 +12:00
utils Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
cli.rs Nu table (#2015) 2020-06-20 15:41:53 +12:00
commands.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
context.rs Batch of moving commands off async_stream #3 (#1919) 2020-05-31 06:31:50 +12:00
data.rs Bat config (#2010) 2020-06-19 15:08:59 -05:00
deserializer.rs It expansion (#1668) 2020-04-27 14:04:54 +12:00
env.rs WIP: Per directory env-variables (#1943) 2020-06-08 19:55:25 +12:00
examples.rs 1882-Add min, max in addition to average for acting lists (#1969) 2020-06-14 09:49:57 +12:00
format.rs Nu table (#2015) 2020-06-20 15:41:53 +12:00
futures.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
git.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
lib.rs Nu table (#2015) 2020-06-20 15:41:53 +12:00
path.rs Fix cd'ing to symlinked directories (#1651) 2020-04-25 18:09:00 +12:00
prelude.rs Nu table (#2015) 2020-06-20 15:41:53 +12:00
shell.rs create Palette trait (#1813) 2020-05-18 05:48:57 +12:00
utils.rs Remove test-bins feature. 2020-05-17 23:32:55 -05:00