nushell/crates/nu-cli/tests/commands
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
..
math Sort primitives explictly. (#2016) 2020-06-19 23:34:36 -05:00
alias.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
append.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
cal.rs Add support to allow the week day start in cal to be configured via a flag (#1996) 2020-06-19 05:34:51 +12:00
calc.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
cd.rs When the nushell is located in a path that has a space in it, these tests break, this fixes it (#1944) 2020-06-07 15:50:52 +12:00
compact.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
cp.rs When the nushell is located in a path that has a space in it, these tests break, this fixes it (#1944) 2020-06-07 15:50:52 +12:00
default.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
drop.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
each.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
enter.rs use encoding on open for #1939 (#1949) 2020-06-11 19:37:43 -05:00
every.rs Add 'every' command to select (or skip) every nth row (#1992) 2020-06-17 07:58:41 +12:00
first.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
format.rs let format access variables also (#1842) 2020-05-19 16:20:09 +12:00
get.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
group_by.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
headers.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
histogram.rs Added a count column on the histogram command (#1853) 2020-05-20 18:02:36 +12:00
insert.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
is_empty.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
keep.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
keep_until.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
keep_while.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
last.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
lines.rs Split split command to sub commands. 2020-05-24 02:02:44 -05:00
ls.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
merge.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
mkdir.rs Implement an option to show paths made of mkdir. (#1932) 2020-06-06 15:13:38 -04:00
mod.rs Minor Math Sum Additions (#2007) 2020-06-20 06:00:18 +12:00
mv.rs Simplify mv in FilesystemShell (#1587) 2020-05-12 16:40:45 -04:00
nth.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
open.rs use encoding on open for #1939 (#1949) 2020-06-11 19:37:43 -05:00
parse.rs Simplify parse plugin code. (#1904) 2020-05-28 09:58:06 -04:00
prepend.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
range.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
rename.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
reverse.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
rm.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
save.rs When the nushell is located in a path that has a space in it, these tests break, this fixes it (#1944) 2020-06-07 15:50:52 +12:00
select.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
semicolon.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
skip_until.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
sort_by.rs Show error when trying to sort by invalid column (#1880) 2020-05-25 05:37:08 +12:00
split_by.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
split_column.rs Split split command to sub commands. 2020-05-24 02:02:44 -05:00
split_row.rs Fix warnings and split Scope (#1902) 2020-05-27 16:50:26 +12:00
str_.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
touch.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00
trim.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
uniq.rs Uniq: --count flag to count occurences (#2017) 2020-06-21 12:22:06 +12:00
update.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
where_.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
with_env.rs Fix for inconsistency when quoted strings are used with with_env shorthand (#1900) 2020-05-26 15:03:55 -04:00
wrap.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00