Justin Ma
3f14b75153
feat: add examples for length,lines,reject,benchmark and drop column ( #4547 )
2022-02-18 19:03:24 -06:00
JT
d53eaac7a1
Improve comparison errors ( #4541 )
2022-02-18 17:11:27 -05:00
Justin Ma
a5f9ad2a43
Add or update examples for some commands ( #4521 )
...
* chore: add or update examples for some commands
* chore: code formatting
2022-02-18 07:06:52 -06:00
JT
6e733f49bc
Require block params ( #4505 )
...
* Require block params
* Improve errors
2022-02-17 06:40:24 -05:00
Darren Schroeder
b8b2737890
make find case insensitive ( #4502 )
2022-02-16 19:42:40 -06:00
JT
5b6156687e
Use partial_cmp and make -i case insensitive ( #4498 )
...
* Use partial_cmp and make -i case insensitive
* Insensitive sort multiple columns
2022-02-16 11:12:49 -05:00
JT
c4e1559f89
Another batch of command tests ( #4496 )
...
* Add a batch of command tests
* More tests
2022-02-16 07:38:02 -05:00
Darren Schroeder
f11fa99d30
check to make sure we have data first ( #4484 )
2022-02-15 15:08:11 -06:00
JT
66669d7839
Fix more command tests ( #4481 )
2022-02-15 10:08:07 -05:00
JT
9114a2d31d
Ensure that reduce has a valid span ( #4479 )
2022-02-15 07:59:51 -05:00
Michael Angerman
06f5affc0b
add in the Value List to the sort-by Ordering ( #4464 )
2022-02-13 10:20:50 -08:00
Michael Angerman
7a3aeaf080
sort_by: coerce_compare now returns an Ordering ( #4461 )
...
* coerce_compare now returns an Ordering which will enable mixed type comparison
* arbitrary nushell sort order of Float / Int / String / Bool
2022-02-13 09:23:54 -08:00
Andrew Barnes
77eb4c4188
Fix default duplicates column ( #4452 )
...
* Add test to ensure default not adding dup. columns
* Fix for default adding duplicate columns
2022-02-13 05:38:46 -05:00
Michael Angerman
e82ffc4dee
sort_by error processing return ShellError instead of static String ( #4453 )
...
* sort_by error processing part I return ShellError instead of static Strings
* more explicit details on what types are failing
* clippy fixes
2022-02-12 21:30:57 -08:00
Darren Schroeder
6fc082f6e9
fix case insensitive sort ( #4449 )
...
* fix case insensitive search
* fixed test
* tweak
2022-02-12 20:48:50 -06:00
Fernando Herrera
1fd7b9ac38
roll commands ( #4437 )
...
* roll commands
* removed repeated funtion
2022-02-12 06:11:54 -05:00
Darren Schroeder
b4b7524206
changed example description ( #4434 )
2022-02-12 06:10:41 -05:00
Fernando Herrera
fcc13224c1
headers command ( #4414 )
...
* headers command
* correct behaviour headers
2022-02-11 21:06:49 -05:00
JT
5a1d81221f
Move 'nth' into 'select' ( #4385 )
2022-02-09 09:59:40 -05:00
Ray Henry
94ab981235
Fix "Index out of bounds" when input to the group-by filter is empty. #4369 ( #4382 )
...
* Fix "index out of bounds" when input to group-by is empty #4369
* Fix formatting #4369
* Adds test for empty input
Co-authored-by: Ray Henry <ray.henry@thermofisher.com>
2022-02-09 08:47:47 -06:00
panicbit
cf20eed7bc
Support records in reject command ( #4373 )
...
* support records in reject command
* add reject command tests
2022-02-08 15:57:46 -05:00
JT
d70d91e559
Remove old nushell/merge engine-q
2022-02-07 14:54:06 -05:00
JT
84d3620d9b
Oops, match semantics of each group/window ( #967 )
2022-02-06 21:26:01 -05:00
JT
8a373dd554
Add each window ( #966 )
2022-02-06 20:23:18 -05:00
JT
c3e0e8eb5c
Add par-each group ( #965 )
2022-02-06 19:28:09 -05:00
JT
a911b21256
Switch more commands to redirecting blocks ( #956 )
2022-02-05 21:03:06 -05:00
Darren Schroeder
2dd32c2b88
Rename some files ( #952 )
...
* renamed some files
* clippy
* update tests
2022-02-05 12:35:02 -05:00
JT
3eba90232a
Port each group ( #953 )
2022-02-05 12:34:35 -05:00
JT
a008f1aa80
Command tests ( #922 )
...
* WIP command tests
* Finish marking todo tests
* update
* update
* Windows cd test ignoring
2022-02-03 21:01:45 -05:00
Darren Schroeder
3d3298290a
add case-insensitive sorting ( #919 )
2022-02-03 15:18:18 -06:00
Andrés N. Robalino
def5869c1c
command(split-by) ( #897 )
2022-01-30 18:29:21 -05:00
Julian Aichholz
67cb720f24
Port update cells command ( #891 )
...
* Port update cells command
Clean up, nicer match statements in UpdateCellsIterator
Return columns flag into HashSet errors
Add FIXME: for update cell behavior on nested lists
* Fix: process cells for Record when no columns are specified
* Fix: address clippy lints for unwrap and into_iter
* Fix: don't step into lists and don't bind $it var
2022-01-30 23:41:05 +02:00
JT
a51d45b99d
Ignore clippy's erroneous warnings ( #895 )
2022-01-30 16:12:41 -05:00
JT
060a4b3f48
Port detect columns
( #892 )
2022-01-30 07:52:24 -05:00
Stefan Stanciulescu
3c8716873e
Port rotate ( #880 )
...
* Add rotate command
* Add rotate counter clockwise
* Fix comments in the code
* Fix clippy warnings
* Fix comment
* Fix wrong step for non even table sizes
* Fix comment for moving through array
* Refactor rotate and have only one command with a --ccw flag for counter-clockwise rotation. By default, rotate is clockwise
* Update usage description
2022-01-29 15:47:28 -05:00
Stefan Stanciulescu
1a25970645
Port rename ( #877 )
...
* Port rename
* Update description
* Fix fmt issues
* Refactor the code a bit and move things around
2022-01-29 05:26:47 -05:00
JT
020ad24b25
"maybe text codec" version 2 ( #871 )
...
* Add a RawStream that can be binary or string
* Finish up updating the into's
2022-01-28 13:32:33 -05:00
Michael Angerman
a4421434d9
add support for Floats for sort-by ( #857 )
2022-01-26 14:44:37 -08:00
Stefan Stanciulescu
e8b8836977
Add suport for Filesize and Date for sort-by command ( #855 )
2022-01-26 13:54:31 -08:00
JT
3023af66fd
Port default command ( #848 )
2022-01-26 02:02:15 +11:00
Stefan Stanciulescu
f4c0538653
Flatten records. Not thoroughly tested though ( #845 )
2022-01-25 23:07:37 +11:00
Jakub Žádník
53f41c1985
Port move ( #833 )
...
* Remove comment
* Fix merge not retaining LS_COLORS
* Add move command
* Add checking for non-existent columns
* Add move command examples; Disallow flag shorthand
2022-01-24 21:43:38 +02:00
Michael Angerman
8a1b2d0812
fix several cases where sort-by was crashing engine-q ( #836 )
2022-01-23 20:52:19 -08:00
Darren Schroeder
d4fb95a98c
allow find to respect ls_colors ( #834 )
2022-01-24 12:23:03 +11:00
Arthur Targaryen
f82e2fbac6
Port find
command ( #658 )
...
* Add `Find` command
* Complete rustdoc for test `Value` constructors
* Use `Option::unwrap_or` instead of match
* Add `Value::test_filesize` constructor
* Handle searching for terms in `find`
* Fix `find` command signature
* Return multiple elements when `find`ing by predicate
* Do not accept rest parameter with predicate
* Handle `CellPath` in `r#in` and `not_in` for `Find`
* Use `PipelineData::filter`
2022-01-23 16:32:02 -06:00
Darren Schroeder
3d40e169ce
fix to retain ls_colors coloring from ls ( #824 )
...
fixes #823
2022-01-22 18:36:27 -05:00
Michael Angerman
89d852f76c
port sort_by without float (yet) ( #814 )
2022-01-22 12:49:50 -08:00
Stefan Stanciulescu
afe83104c6
Fix flatten's dropping column issue #756 ( #805 )
...
* Fix flatten's dropping column issue, and do some cleanup - better variable naming.
* Fix failing test
* Fix failing tests
2022-01-23 01:19:40 +11:00
Jakub Žádník
564c2dd7d1
Port merge command from Nushell ( #808 )
...
* Add example test to zip
* Port merge command from Nushell
On top of the original merge, this one should not collect a stream
returned from the merged block and allows merging records.
2022-01-22 01:50:26 +02:00
JT
6fa022b0a8
Add group-by and transpose (aka pivot) ( #803 )
2022-01-21 15:28:21 -05:00