nushell/crates/nu-cli/tests/commands
Andrés N. Robalino 028fc9b9cd
Data summarize reporting overhaul. (#2299)
Refactored out most of internal work for summarizing data opening
the door for generating charts from it. A model is introduced
to hold information needed for a summary, Histogram command is
an example of a partial usage. This is the beginning.

Removed implicit arithmetic traits on Value and Primitive to avoid
mixed types panics. The std operations traits can't fail and we
can't guarantee that. We can handle gracefully now since compute_values
was introduced after the parser changes four months ago. The handling
logic should be taken care of either explicitly or in compute_values.

The zero identity trait was also removed (and implementing this forced
us to also implement Add, Mult, etc)

Also: the `math` operations now remove in the output if a given column is not computable:

```
> ls | math sum
──────┬──────────
 size │ 150.9 KB
──────┴──────────
```
2020-08-03 17:47:19 -05:00
..
keep Keep until and while as subcommands of keep (#2197) 2020-07-18 07:06:48 +12:00
math Data summarize reporting overhaul. (#2299) 2020-08-03 17:47:19 -05:00
move_ Add "move column" command. (#2123) 2020-07-06 10:27:01 -05:00
random Add wasm support (#2199) 2020-07-18 13:59:23 +12:00
skip Merge skip command varieties into one command with sub commands. (#2179) 2020-07-14 20:44:49 -05:00
str_ Make str collect take an optional separator value (#2289) 2020-08-02 19:29:29 +12: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
autoenv_trust.rs Autoenv rewrite, security and scripting (#2083) 2020-07-06 05:34:00 +12:00
autoenv_untrust.rs Autoenv rewrite, security and scripting (#2083) 2020-07-06 05:34:00 +12:00
autoenv.rs Autoenv rewrite, security and scripting (#2083) 2020-07-06 05:34:00 +12: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
cd.rs Add wasm support (#2199) 2020-07-18 13:59:23 +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 Stream results of drop command (#2114) 2020-07-06 05:46:06 +12:00
each.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
echo.rs Make every stream-able (#2120) 2020-07-06 20:23:27 +12:00
enter.rs Convert open/fetch to stream (#2028) 2020-07-04 07:53:20 +12: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 group-by can generate custom grouping key by block evaluation. (#2172) 2020-07-14 08:45:19 -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 Make insert take in a block (#2265) 2020-07-30 16:58:54 +12:00
is_empty.rs Convert sum command into subcommand of the math command (#2004) 2020-06-18 21:02:01 -05:00
last.rs Show entire table if number of rows requested for last is greater than table size (#2112) 2020-07-05 13:04:17 +12:00
lines.rs Merge skip command varieties into one command with sub commands. (#2179) 2020-07-14 20:44:49 -05:00
ls.rs Change f/full flag to l/long for ls and ps commands (#2283) 2020-08-02 06:30:45 +12: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 Rename calc to math eval and allow it to optionally take an expression as an argument (#2195) 2020-07-18 16:11:19 +12:00
nth.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
open.rs Add wasm support (#2199) 2020-07-18 13:59:23 +12: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
sort_by.rs Add flag for case-insensitive sort-by (#2225) 2020-07-21 05:31:58 +12:00
split_by.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00
split_column.rs Add "move column" command. (#2123) 2020-07-06 10:27:01 -05:00
split_row.rs Fix warnings and split Scope (#1902) 2020-05-27 16:50:26 +12: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 Fix uniq to work with simple values (#2214) 2020-07-19 05:19:03 +12:00
update.rs Add wasm support (#2199) 2020-07-18 13:59:23 +12:00
where_.rs Add wasm support (#2199) 2020-07-18 13:59:23 +12:00
with_env.rs Convert table of primitives to positional arguments for external cmd (#2232) 2020-07-23 09:41:34 +12:00
wrap.rs Pick->Select rename. Integration tests changes. (#1725) 2020-05-07 06:03:43 -05:00