onthebridgetonowhere
df5ac9b71c
Port str datetime to into datetime ( #424 )
...
* Port str datetime to into datetime
* Fix the span issue and some other small cleanups
2021-12-04 16:41:02 +13:00
Jakub Žádník
ee45755ea9
Add canonicalization to source & use paths ( #421 )
...
Also added file path print to FileNotFound error
2021-12-03 21:49:11 +02:00
Jakub Žádník
405a4e58c7
Fix 'help commands'; Add 'is_custom' column ( #420 )
...
* Fix fetching commands; Add is_custom column
* Remove old comment
2021-12-03 20:45:29 +02:00
Fernando Herrera
f3c8d35eb7
Plugin repeated ( #417 )
...
* not repeated decl in file and help
* implemented heashmap for repeated
* sorted scope commands
2021-12-03 14:29:55 +00:00
JT
a28d38b05f
Try some fixes for external paths ( #415 )
2021-12-03 20:40:31 +13:00
JT
574d7f6936
Add table streaming ( #413 )
2021-12-03 19:15:23 +13:00
Luccas Mateus
3d8394a909
to csv
and to tsv
(#412 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* ToTsv and ToCsv
2021-12-03 15:02:22 +13:00
onthebridgetonowhere
349e83abd0
Port str to-decimal to into decimal command. ( #408 )
...
* Port str to-decimal to into decimal command. Add also a Value::test_float function for tests only
* Add support for handling integers into decimals and fix issues with error span
2021-12-03 15:01:19 +13:00
onthebridgetonowhere
bf82417d52
Port str upcase ( #404 )
...
* Port str upcase
* Switch to to_uppercase to support more characters than only ASCII
2021-12-03 15:00:32 +13:00
JT
c5297d2b64
First step ( #411 )
2021-12-03 12:11:25 +13:00
JT
d9bedaae2f
Fix plurals in abbrevations ( #409 )
2021-12-03 10:36:54 +13:00
JT
19766556f3
Add value abbreviations ( #407 )
2021-12-03 10:07:44 +13:00
onthebridgetonowhere
687fefd791
Remove Arc from Arguments ( #405 )
2021-12-03 10:07:36 +13:00
JT
ccd5f59314
Update external spawn ( #406 )
...
* Simplify external spawn, improve arg cleaning
* Fix tests
* Fix windows test
2021-12-03 09:55:16 +13:00
onthebridgetonowhere
ff673ba0ba
Add the support of str to-int to the into int command ( #389 )
2021-12-03 06:54:47 +13:00
JT
f57d629b55
Default prompt animations to off ( #403 )
2021-12-03 06:26:23 +13:00
Jae-Heon Ji
43972db131
feat(random): add random-decimal ( #402 )
2021-12-03 06:26:12 +13:00
Darren Schroeder
f2aa952e86
add back debug --raw switch ( #401 )
...
* add back debug --raw switch
* tweak some debug and other settings
2021-12-02 08:32:12 -06:00
JT
071066b6d9
Move prompt animation setting to config ( #400 )
2021-12-02 20:10:40 +13:00
JT
ac2afab40b
Fix parse error metadata ( #399 )
2021-12-02 19:36:30 +13:00
Fernando Herrera
99de2b1d77
plugin path for $nu ( #398 )
2021-12-02 06:35:32 +00:00
JT
45eba8b922
Introduce metadata into the pipeline ( #397 )
2021-12-02 18:59:10 +13:00
Fernando Herrera
56307553ae
Plugin with evaluated call ( #393 )
...
* plugin trait
* impl of trait
* record and absolute path
* plugin example crate
* clippy error
* correcting cargo
* evaluated call for plugin
2021-12-02 05:42:56 +00:00
onthebridgetonowhere
2bbba3f5da
Port str trim ( #394 )
2021-12-02 17:38:44 +13:00
Luccas Mateus
34e0fd622b
to url
and to toml
(#396 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* ToUrl and ToToml
* Linting
2021-12-02 17:38:00 +13:00
Jakub Žádník
124561ff12
Rename add_decls() to use_decls() ( #395 )
...
To reflect better what the method actually does.
2021-12-02 00:25:51 +02:00
Darren Schroeder
d8c721282b
add optional footer to table ( #392 )
...
* add optional footer to table
* missed a draw_table
2021-12-01 13:20:23 -06:00
Jae-Heon Ji
d2a1564b94
feat(random): add random-chars ( #390 )
2021-12-02 07:58:10 +13:00
Darren Schroeder
7cf96c6597
added row_index coloring ( #391 )
2021-12-01 09:17:50 -06:00
onthebridgetonowhere
b8f1fea7fe
Port str substring command ( #388 )
...
* Port str substring command
* Fix issue signaled by cargo fmt
2021-12-01 19:42:57 +13:00
Jakub Žádník
c17e1473db
Hiding of environment variables ( #362 )
...
* Remember environment variables from previous scope
* Re-introduce env var hiding
Right now, hiding decls is broken
* Re-introduce hidden field of import patterns
All tests pass now.
* Remove/Address tests TODOs
* Fix test typo; Report hiding error
* Add a few more tests
* Fix wrong expected test result
2021-11-30 19:14:05 +13:00
Jae-Heon Ji
21ddfc61f4
add random commands ( #366 )
...
* feat: add random command
* feat: add bool sub-command
2021-11-30 19:12:19 +13:00
Darren Schroeder
ce4d9dc7c6
allow icons to be used in grid -c
( #378 )
...
* add icons to grid output. still needs cleanup
* working but adds a dependency on ansi_term - need to fix that
* update styling, added lots of green code to icons
* clippy
* add config point for grid icons
2021-11-29 14:37:09 -06:00
Luccas Mateus
414ed4877a
From ssv from xml ( #383 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* From xml and from ssv
* linting
2021-11-30 08:22:13 +13:00
Andrew
5de12da765
Port over the kill command from nushell ( #381 )
...
* Port over the kill command from nushell
* Update formatting
* Improve error message by combining signal spans
2021-11-30 07:21:55 +13:00
Arthur Targaryen
bab8f6bd28
Port skip
, skip while
and skip until
commands ( #380 )
...
* Add `Skip` command
* Add `SkipUntil` sub-command
* Add `SkipWhile` sub-command
* Add and use `Expression::as_row_condition_block`
2021-11-29 19:52:23 +13:00
Fernando Herrera
ee239a0d37
testing suite for dataframes ( #379 )
2021-11-29 19:50:57 +13:00
Andrew
e07ce57423
Port over the sleep command from nushell ( #371 )
...
* Port over the sleep command from nushell
* Fix clippy warning
* Remove unused variable
2021-11-29 10:15:32 +13:00
Fernando Herrera
c8b16c14d5
Option to replace command same name ( #374 )
...
* option to replace command same name
* moved order of custom value declarations
* arranged dataframe folders and objects
* sort help commands by name
* added dtypes function for debugging
* corrected name for dataframe commands
* command names using function
2021-11-28 19:35:02 +00:00
Andrew
e1e7e94261
Port over the clear command from nushell ( #373 )
...
* Port over the clear command from nushell
* cargo fmt
2021-11-28 08:32:44 +00:00
Arthur Targaryen
8c0fa0d26e
Add Any
command ( #375 )
2021-11-28 08:29:35 +00:00
JT
f7f8b0dbff
A few help cleanups ( #372 )
2021-11-28 07:16:20 +13:00
Arthur
63c3d19c67
Port all?
command ( #365 )
...
* Implement `From<bool>` for `Value`
* Add `All` command
* Change `IntoPipelineData` and `IntoInterruptiblePipelineData` bounds
* Refactor `PipelineIterator` impls
* Add `PipelineData::into_interruptible_iter`
* Use `into_interruptible_iter` instead of `all` helper
* Merge imports
* Refactor `PipelineData::{filter, map}`
* Change comment pronoun
* Treat `RowCondition` as a block
* Remove unnecessary braces
* Address cluppy warning
2021-11-28 06:49:03 +13:00
JT
5d88ed6c75
Add better exit command ( #369 )
2021-11-26 21:00:57 +13:00
JT
f052b3313d
Move row condition to block ( #368 )
2021-11-26 16:49:03 +13:00
Luccas Mateus
8043516d75
from vcf
from ics
and from ini
(#367 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* `from toml` command
* From ods
* From XLSX
* From ics
* From ini
* From vcf
* Forgot a eprintln!
2021-11-26 06:10:56 +13:00
Fernando Herrera
76019f434e
Dataframe feature ( #361 )
...
* custom value trait
* functions for custom value trait
* custom trait behind flag
* open dataframe command
* command to-df for basic types
* follow path for dataframe
* dataframe operations
* dataframe not default feature
* custom as default feature
* corrected examples in command
2021-11-23 08:14:40 +00:00
Michael Angerman
a2aaeb38ed
port over the drop command from nushell ( #358 )
2021-11-22 08:04:20 +13:00
JT
143855b662
Add better comment skipping ( #359 )
2021-11-22 07:13:09 +13:00
Jakub Žádník
d30dfc63c4
Fix reading of LS_COLORS; ls display symlink ( #357 )
...
Also a swing-by fix removing a redundant call to
std::fs::symlink_metadata().
2021-11-21 01:14:42 +02:00
Darren Schroeder
250743f60f
add coloring by primitive, bring in nu-ansi-term crate ( #353 )
...
* add coloring by primitive, bring in nu-ansi-term crate
* clippy
2021-11-20 07:12:35 -06:00
Luccas Mateus
00aac850fd
from xlsx
from ods
and from toml
(#352 )
...
* MathEval Variance and Stddev
* Fix tests and linting
* Typo
* Deal with streams when they are not tables
* `from toml` command
* From ods
* From XLSX
2021-11-20 08:23:35 +13:00
JT
e01e73cb67
Add debug and describe ( #351 )
...
* Add debug and describe
* Fix test
2021-11-19 18:00:29 +13:00
JT
ff43ca4d24
Better record types ( #350 )
2021-11-19 17:30:27 +13:00
Fernando Herrera
88988dc9f4
Plugins signature load ( #349 )
...
* saving signatures to file
* loading plugin signature from file
* is_plugin column for help command
2021-11-19 15:51:42 +13:00
JT
aa7226d5f6
Expand globs and filepaths ( #348 )
2021-11-19 08:32:27 +13:00
Michael Angerman
adb7eeb740
port over the append command from nushell ( #345 )
2021-11-19 08:16:04 +13:00
JT
96bdcc4ff7
Fix term width for the table ( #346 )
2021-11-18 18:48:15 +13:00
Jakub Žádník
f8f437b060
Separate Overlay into its own thing ( #344 )
...
It's no longer attached to a Block. Makes access to overlays more
streamlined by removing this one indirection. Also makes it easier to
create standalone overlays without a block which might come in handy.
2021-11-17 17:23:55 +13:00
Fernando Herrera
b35914bd17
Category option for signature ( #343 )
...
* category option for signature
* category option for signature
* column description for $scope
2021-11-17 17:22:37 +13:00
onthebridgetonowhere
6fbe02eb21
Port str startswith ( #342 )
...
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-16 12:16:56 +13:00
Jakub Žádník
5459d30a24
Add environment variable support for modules ( #331 )
...
* Add 'expor env' dummy command
* (WIP) Abstract away module exportables as Overlay
* Switch to Overlays for use/hide
Works for decls only right now.
* Fix passing import patterns of hide to eval
* Simplify use/hide of decls
* Add ImportPattern as Expr; Add use env eval
Still no parsing of "export env" so I can't test it yet.
* Refactor export parsing; Add InternalError
* Add env var export and activation; Misc changes
Now it is possible to `use` env var that was exported from a module.
This commit also adds some new errors and other small changes.
* Add env var hiding
* Fix eval not recognizing hidden decls
Without this change, calling `hide foo`, the evaluator does not know
whether a custom command named "foo" was hidden during parsing,
therefore, it is not possible to reliably throw an error about the "foo"
name not found.
* Add use/hide/export env var tests; Cleanup; Notes
* Ignore hide env related tests for now
* Fix main branch merge mess
* Fixed multi-word export def
* Fix hiding tests on Windows
* Remove env var hiding for now
2021-11-16 12:16:06 +13:00
Darren Schroeder
ab22619f4a
enable ls_colors for the ls
command ( #340 )
...
* enable ls_colors for the `ls` command
* added wrapping with ansi-cut so the ansi sequences don't bleed over
* clippy
2021-11-15 14:09:17 -06:00
JT
42367ddf6d
Add support for crlf for line continuations ( #341 )
2021-11-16 07:33:33 +13:00
Benoît Cortier
e324c1a078
Port parse command ( #338 )
2021-11-16 07:27:15 +13:00
Michael Angerman
4fd020ab7f
delete the file row.rs in nu-protocol/value which has references to RowStream ( #339 )
2021-11-15 18:43:11 +13:00
onthebridgetonowhere
50cbd16ec7
Port str reverse ( #337 )
...
Co-authored-by: Stefan Stanciulescu <contact@stefanstanciulescu.com>
2021-11-15 14:43:40 +13:00
JT
be827e5628
Fix multiword imports/exports ( #336 )
2021-11-15 08:40:26 +13:00
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
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
JT
962adf5a12
add threading
2021-10-26 11:56:29 +13:00
JT
c18f0dcc84
range display touchup
2021-10-26 11:24:10 +13:00
JT
85a69c0a45
WIP
2021-10-26 10:14:21 +13:00
JT
d29208dd9e
WIP
2021-10-26 09:04:23 +13:00
JT
f84582ca2b
WIP
2021-10-26 06:46:26 +13:00
JT
5d19017603
WIP
2021-10-26 05:58:58 +13:00
Luccas Mateus de Medeiros Gomes
3f313da4c3
Fix test
2021-10-25 08:10:17 -03:00
JT
baac60a5a7
WIP
2021-10-25 19:42:38 +13:00
JT
b5965ee8ef
WIP
2021-10-25 19:31:39 +13:00
JT
397a31e69c
WIP
2021-10-25 17:24:10 +13:00
JT
b6d269e90a
WIP
2021-10-25 17:01:02 +13:00
Luccas Mateus de Medeiros Gomes
aa5ab8a666
final math abs
2021-10-24 20:58:18 -03:00
Fernando Herrera
36a834c1e3
encode list
2021-10-24 13:20:01 +01:00
Michael Angerman
4bb2406772
Merge branch 'main' into interactive_helper
2021-10-23 18:09:20 -07:00
JT
1296100d31
Clippy fixes
2021-10-24 12:40:27 +13:00
Fernando Herrera
5a1d99cefb
plugin command
2021-10-23 21:11:19 +01:00
Fernando Herrera
232790f488
plugin command
2021-10-23 21:08:54 +01:00
Michael Angerman
297f3ba575
clean up filesystem by moving get_interactive_confirmation into util.rs
2021-10-23 10:57:45 -07:00
Luccas Mateus
51bea2e884
still not working
2021-10-21 12:29:57 -03:00
Luccas Mateus
b1d7e3aa49
starting to build this
2021-10-21 11:52:26 -03:00
JT
b322a12f58
Add more helper functions
2021-10-20 18:58:25 +13:00
JT
1b745015c3
little cleanup
2021-10-16 07:51:25 +13:00
JT
68601629c0
Fix warning
2021-10-16 07:39:36 +13:00
JT
82b0415d92
Try out select completions from dialoguer
2021-10-16 07:37:58 +13:00
JT
bd5009a865
Merge pull request #235 from GabrielBG0/interactive-flag
...
cp, mv, and rm commands need to support -i flag
2021-10-16 07:17:03 +13:00
Gabriel B Gutierrez
5bd20e4d36
fix clippy warnings
2021-10-15 12:12:17 -03:00
Gabriel B Gutierrez
28b26ca44d
supress warnings
2021-10-14 18:14:59 -03:00
Gabriel B Gutierrez
b3192ddc97
fix operating more than 2 file at the same time
2021-10-14 17:03:39 -03:00
Gabriel B Gutierrez
8c2ae1eed1
-i flag finished, lacking tests
2021-10-14 14:54:51 -03:00
Darren Schroeder
fdf6bbb6fc
clean up some todo comments in grid
2021-10-14 08:03:20 -05:00
JT
0d7b10fd0b
Remove bad fixmes
2021-10-14 17:43:49 +13:00
Gabriel B Gutierrez
9ea7cdfc33
-i flag on signaure
2021-10-13 19:29:08 -03:00