JT
34617fabd9
Do some str collect cleanup ( #312 )
2021-11-09 17:46:26 +13:00
JT
47628946b6
Add str collect
( #311 )
...
* Add str collect
* Oops, missing file
2021-11-09 14:59:44 +13:00
JT
e9a7def183
Add magic $in variable ( #309 )
...
* Add magic in variable
* Oops, missing file
2021-11-08 19:21:24 +13:00
Michael Angerman
cfd40ffaf5
Port over the reverse command from nushell ( #303 )
...
* initial commit of reverse
* reverse is working, now move on to the examples
* add in working examples for reverse
* #[allow(clippy::needless_collect)]
2021-11-07 18:18:27 +00:00
JT
00a8752c76
Move where to helper ( #302 )
2021-11-07 15:40:44 +13:00
Luccas Mateus
7e070e2e5b
Fix "math sum
doesn't support streams" ( #301 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
2021-11-07 14:20:58 +13:00
Michael Angerman
573cb38bab
Port over the shuffle command from nushell ( #300 )
...
* initial commit of shuffle
* port the shuffle command from nushell
2021-11-07 14:19:57 +13:00
onthebridgetonowhere
a1f141d18a
Port str case commands ( #287 )
...
* Port camel case and kebab case
* Port pascal case
* Port snake case and screaming snake case
* Cleanup before PR
* Add back cell path support for str case commands
* Add cell path tests for str case command
* Revert "Add cell path tests for str case command"
This reverts commit a0906318d95fd2b5e4f8ca42f547a7e4c5db381a.
* Add cell path test cases for str case command
* Move cell path tests from tests.rs to Examples in each of the command's file
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-07 06:55:25 +13:00
JT
d401ed64ed
Add range to the math reductions ( #296 )
2021-11-06 20:12:08 +13:00
JT
02b8027749
Improve external output in subexprs ( #294 )
2021-11-06 18:50:33 +13:00
Luccas Mateus
c7d159a0f3
Last three math commands, eval
, variance
and stddev
( #292 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
2021-11-06 06:58:40 +13:00
JT
5837cdb3f1
Update the rest of into
2021-11-05 17:57:24 +13:00
JT
183d200b9f
Add updating cell paths
2021-11-05 16:59:12 +13:00
Fernando Herrera
ae1109139d
Merge branch 'main' of https://github.com/nushell/engine-q into plugins
2021-11-04 22:04:31 +00:00
JT
4a1df604c9
Merge pull request #282 from luccasmmg/engine-q-math
...
math: floor, ceil, median and mode
2021-11-05 07:10:26 +13:00
JT
d23929fc80
Update mode.rs
...
trying a switch to native endian
2021-11-05 07:04:02 +13:00
JT
cfd24bc2ad
Merge pull request #285 from nushell/env_shorthand
...
Add env shorthand
2021-11-04 15:43:10 +13:00
JT
f6d7df5a45
Merge pull request #284 from onthebridgetonowhere/port_first_command
...
Add back binary support for the first command
2021-11-04 15:42:57 +13:00
JT
2b03748681
Merge pull request #283 from aslynatilla/porting-format
...
Porting format
2021-11-04 15:41:45 +13:00
JT
1949ba080e
Add env shorthand
2021-11-04 15:32:35 +13:00
Stefan Stanciulescu
260838e5ea
Switch next_if to next as we already know it's of type Binary
2021-11-03 22:48:12 +01:00
Stefan Stanciulescu
112ebe1842
Add back binary support for first command
2021-11-03 22:44:30 +01:00
Luccas Mateus de Medeiros Gomes
47ebde4087
Added MathMedian
...
Added MathMedian
Fix tests
2021-11-03 18:28:16 -03:00
Antonio Natilla
bfae75ca2e
Clean-up and adding comments
2021-11-03 20:05:24 +01:00
Antonio Natilla
806cd4851f
Format implementation, fix on Echo
...
Now, Echo converts multiple values in a ValueStream, but it simply
forwards a single Value; if no PipelineData is detected as an input, an
empty string is returned as a single Value.
2021-11-03 19:57:30 +01:00
JT
ea27300ca0
Merge pull request #278 from onthebridgetonowhere/port_into_string
...
Port into string command
2021-11-04 05:59:56 +13:00
Luccas Mateus de Medeiros Gomes
d3e5c5a342
Fix tests
2021-11-03 09:19:28 -03:00
Luccas Mateus de Medeiros Gomes
5ae823612f
MathCeil, MathFloor and MathMode
2021-11-03 08:59:08 -03:00
Stefan Stanciulescu
20f3b8b274
Remove unnecessary crate imports
2021-11-03 10:41:01 +01:00
Stefan Stanciulescu
6906de7c48
Ooops fix the wrong naming
2021-11-03 08:48:13 +01:00
Stefan Stanciulescu
bf6c3e53a0
Remove BigDecimal and use i64/f64 instead
2021-11-03 08:38:31 +01:00
Luccas Mateus de Medeiros Gomes
756773a6ed
MathFloor done and MathMode still left work
...
Math mode final form currently
MathMode and MathFloor
2021-11-02 22:33:45 -03:00
Fernando Herrera
12eed1f98a
plugin feature flag
2021-11-02 20:56:00 +00:00
Antonio Natilla
d134774f4b
Merge remote-tracking branch 'origin' into porting-format
2021-11-02 21:23:50 +01:00
JT
5e42b14026
Documenting some code and doing cleanups
2021-11-03 08:53:48 +13:00
Stefan Stanciulescu
78cc3452df
Fix clippy warnings for into string command
2021-11-02 20:51:03 +01:00
Stefan Stanciulescu
070067b75e
Add into string command
2021-11-02 20:39:16 +01:00
Antonio Natilla
52cb50b937
Base Command implementation for Format
...
Note that run is not implemented yet
2021-11-02 18:13:06 +01:00
Stefan Stanciulescu
ce54764bea
Fix test case for first command
2021-11-02 09:06:51 +01:00
Stefan Stanciulescu
6e49d0f84b
Fix first command to display the first item not as a table
2021-11-02 09:05:03 +01:00
Stefan Stanciulescu
e1ea0d42a9
Merge branch 'main' of https://github.com/nushell/engine-q into port_first_command
2021-11-02 08:32:38 +01:00
JT
7b2116dc29
Merge pull request #270 from elferherrera/plugins
...
Plugins for engine q
2021-11-02 19:07:45 +13:00
JT
25846d3c1e
Add zip command
2021-11-02 18:28:28 +13:00
JT
d856cebebd
Add a simple scope variable
2021-11-02 16:08:05 +13:00
JT
3c1b3473ae
Merge pull request #273 from luccasmmg/engine-q-math
...
New math commands(product, round, sqrt and sum)
2021-11-02 11:20:35 +13:00
JT
89b8ee6ad8
Merge pull request #268 from onthebridgetonowhere/date_enqine_q
...
Port date commands to enqine-q
2021-11-02 11:18:46 +13:00
Stefan Stanciulescu
4a68c989e4
Fix test for date to-table
2021-11-01 23:05:53 +01:00
Luccas Mateus de Medeiros Gomes
e16b0e7b01
New math commands(product, round, sqrt and sum)
2021-11-01 18:29:34 -03:00
Antonio Natilla
1c2741c598
Fixing run implementation for Echo
...
Values to echo need to be extracted from the call, and then converted
into PipelineData.
I also updated the first example so that its result is a List,
as in the reference implementation.
2021-11-01 15:43:16 +01:00
Antonio Natilla
89225cf55c
Adding examples and test for Echo
2021-11-01 09:37:07 +01:00