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
Fernando Herrera
a390f66dbf
call and response serializers
2021-10-31 08:17:01 +00:00
Stefan Stanciulescu
fa8a0958e4
Merge branch 'main' of https://github.com/nushell/engine-q into date_enqine_q
2021-10-31 07:56:32 +01:00
Stefan Stanciulescu
20c770370b
Port date commands to engine-q
2021-10-31 07:54:51 +01:00
Michael Angerman
da515b1c9d
port the filter command range from nushell
2021-10-30 10:51:20 -07:00
Fernando Herrera
37f7a36123
syntax serializers
2021-10-30 14:21:59 +01:00
Fernando Herrera
9838154ad1
round trip call info
2021-10-30 11:19:16 +01:00
Fernando Herrera
f301f686b5
Merge branch 'main' of https://github.com/nushell/engine-q into plugins
2021-10-30 11:01:49 +01:00
Jakub Žádník
751595e72e
Add multi-word name calling support
2021-10-29 23:50:28 +03:00
JT
cf3f3fde92
Add some support for
2021-10-30 07:15:17 +13:00
JT
624edce4f7
Add 'to json'
2021-10-29 19:26:29 +13:00
Fernando Herrera
51e48bee53
Merge branch 'main' of https://github.com/nushell/engine-q into plugins
2021-10-28 07:12:40 +01:00
JT
520d9e1fb6
Merge pull request #262 from nushell/ctrlc
...
Add initial ctrl-c support
2021-10-28 17:22:48 +13:00
JT
37150af970
Merge pull request #260 from luccasmmg/engine-q-math-2
...
Added math avg
2021-10-28 17:14:49 +13:00
JT
bac8b8a450
Add initial ctrl-c support
2021-10-28 17:13:10 +13:00
Luccas Mateus de Medeiros Gomes
40ad9acbc3
Added math avg
...
Linting
Fix clippy warning
Fix list of records
2021-10-27 22:13:55 -03:00
Jakub Žádník
4fc533340b
Add function that searches for multi-word commands
...
It doesn't do anything right now.
2021-10-28 00:53:28 +03:00
Michael Angerman
c114f41545
clippy fix
2021-10-27 08:35:42 -07:00
Michael Angerman
9baf720156
add in an example
2021-10-27 08:07:37 -07:00
Michael Angerman
4b31fe1924
code cleanup
2021-10-27 07:25:30 -07:00
Michael Angerman
656e86a7ca
got it working by turning it into a vec
2021-10-27 07:19:33 -07:00
Michael Angerman
5d62f1a9c1
compile error to show issue
2021-10-26 21:04:48 -07:00
Michael Angerman
6d6b850911
switched to a working function called rows_to_skip
2021-10-26 20:48:31 -07:00
Jakub Žádník
b5329fe4ec
Cleanup; Remove redundant UTF-8 check
2021-10-27 00:34:39 +03:00
Jakub Žádník
78256b4923
Fix syntax highlighting for new import patterns
2021-10-27 00:30:39 +03:00
Jakub Žádník
bd6c550470
Change import pattern delimiter to space
...
Subcommands and module imports will have the same syntax now.
2021-10-27 00:13:39 +03:00
Michael Angerman
95628bef16
sending off for JT to review
2021-10-26 13:45:10 -07:00
Michael Angerman
ca7ff37697
add in dbg info so I can see what is being matched on
2021-10-26 13:06:26 -07:00
Fernando Herrera
af02c8f6ea
call info encoder
2021-10-26 20:50:39 +01:00
Michael Angerman
0f27249319
Merge branch 'main' into last2
2021-10-26 12:49:08 -07:00
Michael Angerman
3625324bad
last is working also with the hard coded length, need to figure out how to get the length of the input
2021-10-26 11:46:03 -07:00
Michael Angerman
7e66aca18e
going to have to figure out how to clone input or some other solution
2021-10-26 11:29:00 -07:00
Jakub Žádník
a240aead8c
Add loading module from file
...
Currently, `use spam.nu` creates a module `spam`. Therefore, after the
first `use`, it is possible to call both `use spam.nu` and `use spam`
with the same effect.
2021-10-26 21:03:12 +03:00
Jakub Žádník
75b3b3e090
Add comments
2021-10-26 21:03:12 +03:00
Jakub Žádník
5163dbb7a1
Add tests and cover edge cases of the :: delim.
2021-10-26 21:03:12 +03:00
Jakub Žádník
cbda1b1650
Change import pattern delimiter to ::
2021-10-26 21:03:12 +03:00
Jakub Žádník
e66fd91045
Move module block parsing into its own function
2021-10-26 21:03:12 +03:00
Gabriel Borges Gutierrez
a29c333cb1
ls type lowercase
2021-10-26 15:02:45 -03:00
JT
6b14f9d6b0
Fix par-each signature
2021-10-26 21:16:15 +13:00
JT
29dde84394
Merge pull request #254 from nushell/iter_perf
...
Some iter perf improvements
2021-10-26 16:28:42 +13:00
JT
543c566ccc
Some iter perf improvements
2021-10-26 16:22:37 +13:00
JT
abb6d9f10f
Fix par-each example
2021-10-26 14:49:25 +13:00
JT
e039e5f6a4
Merge pull request #252 from nushell/par_each
...
Add a simple parallel each
2021-10-26 14:37:56 +13:00
JT
9b67899f8d
Merge pull request #248 from luccasmmg/engine-q-math
...
Engine q math(just one command)
2021-10-26 14:32:03 +13:00
JT
5455270446
Add a simple parallel each
2021-10-26 14:30:53 +13:00
Luccas Mateus de Medeiros Gomes
11d8e6c71f
Just removed a few comments
2021-10-25 21:11:20 -03:00
Luccas Mateus de Medeiros Gomes
2ce034d0f0
linting
2021-10-25 20:57:45 -03:00
Luccas Mateus de Medeiros Gomes
017b1d8996
Updated to new PipeLineData and made the tests run
2021-10-25 20:56:22 -03:00
Luccas Mateus
3a5b943d11
Merge branch 'nushell:main' into engine-q-math
2021-10-25 20:40:41 -03:00
JT
766726d0fa
Use different helper functions for split column
2021-10-26 12:35:51 +13:00
JT
df07ed5bf6
Remove debug message
2021-10-26 12:12:27 +13:00