onthebridgetonowhere
f1b2ab0b27
Port str lpad and str rpad ( #334 )
...
* Port str lpad and str rpad
* Remove useless comment
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-15 08:36:24 +13:00
JT
0f107b2830
Add a config variable with engine support ( #332 )
...
* Add a config variable with engine support
* Add a config variable with engine support
* Oops, cleanup
2021-11-15 08:25:57 +13:00
JT
e76451866d
'update' command ( #333 )
2021-11-14 12:02:54 +13:00
onthebridgetonowhere
08d316f6a7
Port str length command ( #330 )
...
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-14 10:25:55 +13:00
JT
14a2918bba
Fix some nightly clippy warnings ( #329 )
2021-11-13 13:42:13 +13:00
Luccas Mateus
db2bca56c9
from url
and from eml
(#324 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* FromEml and FromUrl
Added tests for from eml
2021-11-13 09:46:39 +13:00
onthebridgetonowhere
e756a9ea04
Port str indexof ( #327 )
...
* Port str indexof
* Fix clippy warning
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-12 08:45:39 +13:00
JT
568e566adf
Add record literal syntax ( #326 )
2021-11-11 12:14:00 +13:00
onthebridgetonowhere
586c6d9fa8
Port str find replace ( #325 )
...
* Port str find_replace command
* Add regex crate as dependency
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-11 12:11:34 +13:00
Darren Schroeder
f5b20f0e3b
try to match most of nushell syntax coloring ( #323 )
2021-11-11 06:55:10 +13:00
Luccas Mateus
75cfee28b2
from yaml
and from yml
(#322 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* `from yaml` and `from yml`
`from yaml` and `from yml`
from yaml and from yml
* Fix collect_string
* Fix tests and linting
2021-11-10 14:02:33 +13:00
onthebridgetonowhere
d094f654c3
Port str endswith ( #321 )
...
* Port str endswith command
* Fix clippy warnings
* Styling
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-10 13:51:55 +13:00
JT
bb1740d733
Add from csv and from tsv ( #320 )
2021-11-10 09:17:37 +13:00
onthebridgetonowhere
0f516a0830
Port str downcase and str contains ( #319 )
...
* Port str contains command
* Add another test case / example for str contains
* Port str downcase to engine-q
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-10 09:16:53 +13:00
onthebridgetonowhere
ef20b5f1ef
Port str capitalize ( #317 )
...
* Port str capitalize command
* Keep consistent naming for str commands
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-09 20:40:56 +13:00
JT
e1468c0440
Add some more cell path support for fun ( #316 )
2021-11-09 20:13:05 +13:00
JT
0a20052799
Fix external output threading and ctrlc ( #313 )
2021-11-09 19:14:00 +13:00
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
066afb059e
Add magic in variable, part 2 ( #310 )
2021-11-08 20:13:55 +13:00
JT
e9a7def183
Add magic $in variable ( #309 )
...
* Add magic in variable
* Oops, missing file
2021-11-08 19:21:24 +13:00
JT
e0a26cd048
Finish operator overflow checking ( #308 )
2021-11-08 17:44:59 +13:00
JT
b5bade6187
Let list and table exprs get indexed ( #307 )
2021-11-08 12:18:00 +13:00
JT
fcee3c65bd
Bump some deps ( #306 )
2021-11-08 11:09:30 +13:00
JT
19645575d6
Add 'did you mean' error ( #305 )
2021-11-08 10:48:50 +13:00
Fernando Herrera
dd6452dfaa
capnp proto change schema ( #304 )
...
* capnp proto change schema
* format schema file
2021-11-08 10:43:32 +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
6c31377c21
Fix precedence parse ( #298 )
2021-11-06 20:31:28 +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
f8e48aa0af
renamed cargo file
2021-11-04 22:22:20 +00:00
Fernando Herrera
44fad9e698
deleted cargo file
2021-11-04 22:20:46 +00:00
Fernando Herrera
14f30287f1
cargo toml
2021-11-04 22:17:10 +00:00
Fernando Herrera
ae1109139d
Merge branch 'main' of https://github.com/nushell/engine-q into plugins
2021-11-04 22:04:31 +00:00
Fernando Herrera
1d356276c2
simple inc plugin implementation
2021-11-04 22:04:21 +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
Antonio Natilla
af5799c702
Merge remote-tracking branch 'origin/main' into porting-format
2021-11-03 08:02:51 +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
JT
86e1092785
Add more api docs
2021-11-03 13:26:09 +13:00
Fernando Herrera
e193bf43fb
multiple functions in plugin
2021-11-02 21:51:11 +00: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
19301751ee
Fix some machine epsilon warnings
2021-11-02 19:37:53 +13: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
Fernando Herrera
1f4c34fa04
adding span to value encoding
2021-11-01 08:16:56 +00:00
Antonio Natilla
f4ed4fa7e3
Implementing Command for Echo, no examples
...
Referring to:
https://github.com/nushell/nushell/blob/main/crates/nu-command/src/commands/core_commands/echo.rs
as the original implementation.
2021-11-01 09:12:48 +01:00
Fernando Herrera
c56a233808
formating schema file
2021-11-01 07:56:10 +00:00
Fernando Herrera
468b9affde
move run_plugin command location
2021-11-01 07:40:05 +00:00
Fernando Herrera
ef94c71866
Merge branch 'main' of https://github.com/nushell/engine-q into plugins
2021-11-01 07:24:33 +00:00
Fernando Herrera
43c3cfecf7
plugin call function
2021-11-01 07:20:33 +00:00
JT
3176f60b5b
Merge pull request #243 from kubouch/module-files
...
Loading modules from files
2021-11-01 11:08:03 +13:00
Stefan Stanciulescu
ef56d482b2
Port first command to engine-q
2021-10-31 22:53:37 +01:00
Stefan Stanciulescu
304c7a0c92
Remove old code before fixing clippy's warning
2021-10-31 21:08:40 +01:00
Stefan Stanciulescu
8707fbee33
Address clippy's warnings when porting date to engine-q
2021-10-31 21:06:58 +01:00
Stefan Stanciulescu
032356bfb7
Address clippy's warnings when porting date to engine-q
2021-10-31 21:06:44 +01:00
Stefan Stanciulescu
3437dacf0b
Change output of date to-table to be a one-row table
2021-10-31 20:53:23 +01:00
JT
80a4a5eb28
Merge pull request #266 from luccasmmg/engine-q-math-2
...
Added math and min commands
2021-11-01 06:45:16 +13:00
Jakub Žádník
73ae3daf85
Add invalid UTF-8 error to use and source
...
Also changed the error message to be more universal.
2021-10-31 17:53:53 +02:00
Jakub Žádník
f182524298
Add TODO notes
2021-10-31 17:46:37 +02:00
Jakub Žádník
b7c0ba104f
Fix hiding module; Fmt
...
This fixes the case when you call `hide spam`. It will now hide all
commands you'd call like `spam foo` etc.
2021-10-31 17:38:00 +02:00
Jakub Žádník
7112664b3f
Fix wrong spans of multiple files
...
The introduction of `use <file.nu>` added the possibility of calling
`working_set.add_file()` more than once per parse pass. Some of the
logic handling the file contents offsets prevented it from working and
hopefully, this commit fixes it.
2021-10-31 17:22:10 +02:00
Luccas Mateus de Medeiros Gomes
5add6035a4
Added math and min commands
...
typo
Added op span
2021-10-31 08:06:32 -03:00