70d63e34e9
Merge pull request #1008 from thegedge/move-pipeline-to-classified
...
Move pipeline code from cli to classified
2019-11-25 18:21:07 -05:00
83ac65ced3
Merge pull request #997 from bndbsh/operator-contains
...
Add `=~` and `!~` operators on strings
2019-11-25 18:19:58 -05:00
d320ffe742
nth can select more than one row at a time.
2019-11-25 17:16:58 -05:00
fbc6f01cfb
Add =~
and !~
operators on strings
...
`left =~ right` return true if left contains right, using Rust's
`String::contains`. `!~` is the negated version.
A new `apply_operator` function is added which decouples evaluation from
`Value::compare`. This returns a `Value` and opens the door to
implementing `+` for example, though it wouldn't be useful immediately.
The `operator!` macro had to be changed slightly as it would choke on
`~` in arguments.
2019-11-25 15:06:11 -05:00
71e7eb7cfc
Move all pipeline execution code from cli to classified::pipeline
2019-11-24 22:52:37 -05:00
339ec46961
Refactor classified.rs into separate modules.
...
Adds modules for internal, external, and dynamic commands, as well as
the pipeline functionality. These are exported as their old names from
the classified module so as to keep its "interface" the same.
2019-11-24 17:19:12 -05:00
06857fbc52
Take all rows having the column present.
2019-11-24 04:35:36 -05:00
1c830b5c95
default command introduced.
2019-11-24 04:20:08 -05:00
a74145961e
Always check the row's columns.
2019-11-24 01:25:41 -05:00
91698b2657
Merge pull request #1003 from andrasio/compact
...
Compact.
2019-11-23 22:03:20 -05:00
4d5f1f6023
Revert some of the recent styled string changes
2019-11-24 13:56:19 +13:00
bc2d65cd2e
Remove raw data debugging.
2019-11-23 19:16:25 -05:00
1a0b339897
compact command introduced.
2019-11-23 19:05:44 -05:00
8d3a937413
Display raw debugging data (rust represetantion).
2019-11-23 18:53:50 -05:00
c8aa8cb842
debug command facelift.
2019-11-22 03:31:58 -05:00
88c4473283
Remove fuzzysearch.
2019-11-22 03:25:09 -05:00
cdb0eeafa2
--no-edit
2019-11-21 14:22:32 -08:00
b3c021899c
combine functions behind to/from-c/tsv commands
...
fixes #969 , admittedly without a --delimiter alias
moves from_structured_data.rs to from_delimited_data.rs to better
identify its scope and adds to_delimited_data.rs. Now csv and tsv both
use the same code, tsv passes in a fixed '\t' argument where csv passes
in the value of --separator
2019-11-19 16:02:35 +00:00
111fcf188e
Add umask to unix --full list
2019-11-19 18:46:47 +13:00
372f6c16b3
Fix build errors on latest nightly
2019-11-18 16:12:37 +13:00
a070cb8154
Format durations nicely
2019-11-17 22:51:56 +01:00
95ca3ed4fa
Remove fuzzy search because of compat issues
2019-11-18 08:01:17 +13:00
c598cd4255
Fix tests
2019-11-18 06:38:44 +13:00
2bb03d9813
Abbreviate ls by default, add --full flag
2019-11-18 06:10:50 +13:00
6231367bc8
Make duration its own primitive
2019-11-17 18:48:48 +13:00
a7d7098b1a
Merge pull request #977 from jonathandturner/from_xls
...
Add from-xlsx for importing excel files
2019-11-17 16:36:22 +13:00
90aeb700ea
Add from_xlsx for importing excel files
2019-11-17 16:18:41 +13:00
f992f5de95
Update save.rs
2019-11-17 14:13:52 +13:00
946f7256e4
Improve error messages for save
...
`save` attempts to convert input based on the target filename extension,
and expects a stream of text otherwise. However the error message is
unclear and provides little guidance, hopefully this is less confusing
to new users.
It might be worthwhile to also add a hint about adding an extension,
though I'm not sure if it's possible to emit multiple diagnostics.
2019-11-16 19:08:38 -05:00
dd36bf07f4
Process prompts once rather than twice
2019-11-17 09:42:35 +13:00
2d4a225e2a
Fix formatting
2019-11-17 09:06:00 +13:00
db218e06dc
Give rustyline non-ansi to begin with. Fixes Windows
2019-11-17 09:02:26 +13:00
07db14f72e
Merge master
2019-11-17 06:17:05 +13:00
ce106bfda9
Fix build warnings
2019-11-16 21:23:04 +13:00
3c3637b674
Add comparison between dates
2019-11-16 14:36:51 +13:00
0756145caf
Fix move file to diffrent partition on Windows
2019-11-15 11:52:51 +09:00
1060ba2206
Fixes --headerless functionality for from-ssv.
...
Squashed commit of the following:
commit fc59d47a2291461d84e0587fc0fe63af0dc26f9f
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Tue Nov 12 15:39:38 2019 +0100
Fixes inconsistencies in output.
commit da4084e9fdd983557b101207b381e333a443e551
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Tue Nov 12 13:04:10 2019 +0100
remove unused enum.
commit 7f6a105879c8746786b99fb19bb9f0860c41796a
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Tue Nov 12 12:58:41 2019 +0100
Starts refactoring from_ssv.
commit b70ddd169ef0c900e03fb590cb171cc7181528db
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Tue Nov 12 11:34:06 2019 +0100
Fixes --headerless for non-aligned columns.
commit 6332778dd26de8d07be77b291124115141479892
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Tue Nov 12 10:27:35 2019 +0100
Fixes from-ssv headerless aligned-columns logic.
commit 747d8c812e06349b4a15b8c130721881d86fff98
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Mon Nov 11 23:53:59 2019 +0100
fixes unit tests for ssv.
commit c77cb451623b37a7a9742c791a4fc38cad053d3d
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Mon Nov 11 22:49:21 2019 +0100
it compiles! one broken test.
commit 08a05964f56cf92507c255057d0aaf2b6dbb6f45
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Mon Nov 11 18:52:54 2019 +0100
Backed into a corner. Help.
commit c95ab683025a8007b8a6f8e1659f021a002df584
Author: Thomas Hartmann <thomas.o.hartmann@gmail.com >
Date: Mon Nov 11 17:30:54 2019 +0100
broken but on the way
2019-11-12 16:04:55 +01:00
0401087175
Refactors out structured parsing logic to a separate module.
2019-11-12 16:04:55 +01:00
f8dc06ef49
Changes implementation of --headerless for from-tsv.
2019-11-12 16:04:55 +01:00
282cb46ff1
Implements --headerless for from-csv
2019-11-12 16:04:55 +01:00
00b3c2036a
This is part of on-going work with capabilities when working with
...
tables and able to work with them for data processing & viewing
purposes. At the moment, certain ways to process said tables we
are able to view a histogram of a given column.
As usage matures, we may find certain core commands that could
be used ergonomically when working with tables on Nu.
2019-11-12 03:39:30 -05:00
3163b0d362
Data processing mvp histogram.
2019-11-12 02:08:28 -05:00
21f48577ae
Reductions placeholder.
2019-11-12 02:08:28 -05:00
0f405f24c7
Bump dep versions
2019-11-11 06:48:49 +13:00
59ab11e932
Merge pull request #947 from jonathandturner/bump_and_plugin_load
...
Bump Nu version and change plugin load logic for debug
2019-11-09 21:29:09 -08:00
df302d4bac
Bump Nu version and change plugin load logic for debug
2019-11-10 16:44:05 +13:00
62a5250554
Add format command
2019-11-10 13:14:59 +13:00
9043970e97
Merge pull request #943 from drmason13/from_csv-add-separator-arg
...
Add --separator argument to from_csv
2019-11-09 15:09:32 -08:00
bab58576b4
Rename read to parse
2019-11-10 11:26:44 +13:00
4a6122905b
fmt: cargo fmt --all
2019-11-08 15:27:29 +00:00