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
JT
dcda7a4e50
Touchups to help
2021-10-14 06:58:39 +13:00
JT
fdd2c35fd9
Add the default help flag
2021-10-14 06:53:27 +13:00
JT
5c46138563
Some touchups to size
2021-10-13 17:15:37 +13:00
JT
ef58348ea2
Merge branch 'main' into load_config
2021-10-13 16:59:09 +13:00
JT
a760e46c1c
Add config file loading
2021-10-13 16:57:05 +13:00
Justin
f5ce63ad55
Merge branch 'nushell:main' into main
2021-10-12 14:56:45 -07:00
xiuxiu62
151bdc8910
drop unused imports
2021-10-12 14:56:29 -07:00
xiuxiu62
2b99e49792
add strings/size command
2021-10-12 14:55:29 -07:00
xiuxiu62
94d00b28b7
add unicode-segmentation crate
2021-10-12 14:55:07 -07:00
xiuxiu62
8fee0b32e7
impl Value::Record from HashMap<String, Value>
2021-10-12 14:54:28 -07:00
Darren Schroeder
ffd922f393
add ability to parse strings like "100kib" and "100 kib"
2021-10-12 15:22:12 -05:00
JT
6024a001b4
Clarify todo/fixmes
2021-10-13 06:44:23 +13:00
JT
aea8627c30
Prevent invalid var names
2021-10-12 18:08:55 +13:00
JT
5f14faf4b4
Custom switch support
2021-10-12 17:49:17 +13:00
JT
c8277a3da9
Do rest args
2021-10-12 16:28:39 +13:00
JT
96419f168b
Also fix the flag params
2021-10-12 10:17:45 +13:00
JT
1f45304cf9
Fix parser when def has missing params
2021-10-12 09:58:38 +13:00
JT
63e3552eef
Add the remaining missing operators
2021-10-12 09:35:12 +13:00
JT
1a15f30eb8
Error on missing column during cell path
2021-10-12 08:51:54 +13:00
JT
0676f32509
Merge branch 'main' into earlier_errors
2021-10-12 08:33:19 +13:00
Darren Schroeder
ea9aad9b5d
fix to allow windows to compile
2021-10-11 13:58:10 -05:00
JT
38bc394a12
Expose errors early when possible
2021-10-12 07:45:31 +13:00
JT
d33a9549b5
Add serialize/deserialize for streams
2021-10-12 07:12:47 +13:00
JT
c4fe190cee
Merge pull request #119 from nushell/error_improvement
...
Error improvement
2021-10-12 07:08:16 +13:00
JT
ba73e0eb06
Another early emit
2021-10-12 06:37:22 +13:00
JT
0504a7a776
Make errors emit first
2021-10-12 06:35:40 +13:00
Darren Schroeder
0e36b4b1bd
type-o
...
changes seperator to separator
2021-10-11 09:32:06 -05:00
JT
4d0a253924
Merge main
2021-10-11 14:57:39 +13:00
JT
c3a032950d
Add initial batch of into conversions
2021-10-11 14:56:19 +13:00
xiuxiu62
491efab09b
remove open and save
2021-10-10 13:24:54 -07:00
Justin
7cafdc9675
Merge branch 'nushell:main' into main
2021-10-10 13:15:54 -07:00
JT
ecee5a9845
Update chars.rs
2021-10-11 07:28:33 +13:00
Jakub Žádník
77c520e10b
Make predeclarations scoped; Add hiding tests
...
In some rare cases, the global predeclarations would clash, for example:
> module spam { export def foo [] { "foo" } }; def foo [] { "bar" }
In the example, the `foo [] { "bar" }` would get predeclared first, then
the predeclaration would be overwritten and consumed by `foo [] {"foo"}`
inside the module, then when parsing the actual `foo [] { "bar" }`, it
would not find its predeclaration.
2021-10-10 14:31:13 +03:00
Jakub Žádník
40741254f6
Rewrite hiding system
...
Hiding definitions now should work correctly with repeated use of 'use',
'def' and 'hide' keywords.
The key change is that 'hide foo' will hide all definitions of foo
that were defined/used within the scope (those from other scopes are
still available). This makes the logic simpler and I found it leads to a
simpler mental map: you don't need to remember the order of defined/used
commands withing the scope -- it just hides all.
2021-10-10 13:18:47 +03:00
jacremer
0b35905ce9
revert temp val
2021-10-09 22:43:50 -07:00
xiuxiu62
beb15dcc77
cleanup + clippy suggestions
2021-10-09 21:17:08 -07:00
xiuxiu62
97ca242634
add rm command + stubs for open and save
2021-10-09 21:13:15 -07:00
Arthur Targaryen
a0a63c966f
Add inline attribute and address warning
2021-10-09 19:44:03 +02:00
Arthur Targaryen
75de7f7e61
Implement PartialOrd
for Value::Stream
2021-10-09 19:40:47 +02:00
Arthur Targaryen
4e443b2088
Change helper method visibility
2021-10-09 19:40:47 +02:00
Arthur Targaryen
9e7e8ed48f
Handle not-in
operator
2021-10-09 19:40:47 +02:00
Arthur Targaryen
5f9ad0947d
Fix Range::contains
2021-10-09 19:40:47 +02:00
Arthur Targaryen
4235cf1191
Implement and use PartialOrd
for Value
2021-10-09 19:40:45 +02:00
Arthur Targaryen
357b9ccaa9
Remove unused import
2021-10-09 19:27:54 +02:00
Arthur Targaryen
d1f0740765
Refactor in
operator for Range
2021-10-09 19:27:54 +02:00
Arthur Targaryen
29cbcb8459
Implement RangeIterator::contains
2021-10-09 19:27:54 +02:00
Arthur Targaryen
7f06d6144f
Support in
operator for record and value stream
2021-10-09 19:27:54 +02:00
Arthur Targaryen
7db6b876ab
Simplify Result<Value, _>
comparaison using matches!
2021-10-09 19:27:54 +02:00
Arthur Targaryen
d3bc096d47
Handle reverse ranges
...
This is really ugly and should be refactored.
2021-10-09 19:27:54 +02:00
Arthur Targaryen
8783cf0138
Add basic in
operator support
2021-10-09 19:27:54 +02:00
JT
8df9ea6c68
Add a couple more tests to for
2021-10-10 05:58:33 +13:00
JT
5d36d37d20
Merge branch 'main' into fix_for
2021-10-10 05:20:50 +13:00
JT
789fc30bf9
oops forgot file
2021-10-10 05:14:02 +13:00
JT
e4ce41ba15
Fix the for loop to create vars
2021-10-10 05:10:46 +13:00
Fernando Herrera
8756e88e3c
command split
2021-10-09 14:28:09 +01:00
Fernando Herrera
41366f6cc4
Merge branch 'main' of https://github.com/nushell/engine-q into unit-test
2021-10-09 14:17:07 +01:00
Fernando Herrera
e3e4ae0591
example unit test
2021-10-09 14:10:10 +01:00
JT
2cd1f634d0
Add map and flat_map to value
2021-10-09 19:20:32 +13:00
JT
5c29a83a7a
Add tests
2021-10-09 15:45:25 +13:00
JT
60f9fe1aa4
Port split column and split row
2021-10-09 15:41:39 +13:00
JT
44fbf0fce3
Merge pull request #108 from nushell/help_and_start_split
...
Port help and start porting split
2021-10-09 14:07:13 +13:00
JT
4ddc953e38
Port help and start porting split
2021-10-09 14:02:01 +13:00
JT
64d83142c3
More external cleanup
2021-10-09 11:30:10 +13:00
JT
dea9c1482b
Allow vars and subexprs in extern args
2021-10-09 10:51:47 +13:00
JT
1b977c658c
Improve the alias expansion
2021-10-09 08:38:42 +13:00
Darren Schroeder
42113a767a
allow one to specify a custom separator
2021-10-08 10:15:07 -05:00
Darren Schroeder
c636c30a19
added a switch to enable coloring
2021-10-08 09:53:26 -05:00
Darren Schroeder
5ddf0d209d
respect lscolors env var; measure width minus ansi
2021-10-08 09:40:20 -05:00
Darren Schroeder
1a3a837f3e
Merge pull request #96 from fdncred/ls_grid_output
...
output `ls` as a grid vs table
2021-10-08 08:23:15 -05:00
Darren Schroeder
c4dabe8327
some cleanup, extra_usage
2021-10-08 08:14:32 -05:00
xiuxiu62
bdfe8c0888
add mkdir command
2021-10-07 15:20:23 -07:00
Darren Schroeder
c4977ae143
clippy
2021-10-07 16:59:01 -05:00
Darren Schroeder
54a41c535b
only print items with name
column
2021-10-07 16:50:27 -05:00
xiuxiu62
8550f50522
substitute idiomatic call flag check
2021-10-07 14:36:47 -07:00
xiuxiu62
e8e1ead99d
change diagnostic code on CreateNotPossible
2021-10-07 14:20:03 -07:00
xiuxiu62
adabc839bf
add touch command
2021-10-07 14:18:03 -07:00
Darren Schroeder
698f768a06
Merge branch 'main' into ls_grid_output
2021-10-07 11:07:21 -05:00
Darren Schroeder
ae8b315e76
added list output
2021-10-07 11:00:49 -05:00
Darren Schroeder
58d73d4c23
moved grid
to it's own crate named nu-term-grid
2021-10-07 10:32:39 -05:00
JT
7eb022b58c
Adapt tk's work for a source command
2021-10-06 15:29:05 +13:00
Tanishq Kancharla
d481d5ca96
Merge branch 'main' of https://github.com/nushell/engine-q into source-command
2021-10-05 22:16:07 -04:00
Tanishq Kancharla
996ee363b7
comments
2021-10-05 22:03:18 -04:00
Tanishq Kancharla
011ad2e4e6
Merge branch 'source-command' of https://github.com/moonrise-tk/engine-q into source-command
2021-10-05 21:59:26 -04:00
Tanishq Kancharla
d6d0bad7aa
reverted
2021-10-05 21:59:16 -04:00
JT
b35d47c500
Merge pull request #98 from xiuxiu62/main
...
port `cp` to fs commands
2021-10-06 11:20:18 +13:00
jacremer
b3b51a2ed6
drop redundant iter -> vec -> iter
2021-10-05 15:09:51 -07:00
xiuxiu62
cc8a470668
clean up unused imports
2021-10-05 14:13:23 -07:00
xiuxiu62
74d4c501a8
add move, recursive fill, and recursive create procedures
2021-10-05 14:08:39 -07:00
Michael Angerman
5cc7fbcde7
jntrnr to nushell
2021-10-05 13:03:43 -07:00
Michael Angerman
8536c12bd9
change signature name to get, it was (I believe) incorrectly named wrap
2021-10-05 12:59:17 -07:00
xiuxiu62
8dc3ebd6e2
start cp command
2021-10-05 12:55:46 -07:00
xiuxiu62
5da1310696
add fs utils
2021-10-05 12:55:33 -07:00
xiuxiu62
9d49618e87
add impl From io::Error and dyn Error for ShellError
2021-10-05 12:54:30 -07:00
Darren Schroeder
7697f7bdce
fix doc-test
2021-10-05 12:58:48 -05:00
Darren Schroeder
51a43f5617
mayve fix ci
2021-10-05 11:14:31 -05:00
Darren Schroeder
11b40a6c31
clippy
2021-10-05 10:30:49 -05:00
Darren Schroeder
3c843f7f61
renamed nu_grid to grid
2021-10-05 10:22:57 -05:00
Darren Schroeder
e402adbba0
WIP: output ls
as a grid vs table
2021-10-05 08:43:20 -05:00
jacremer
27dcbe5c8a
fix SyntaxShape::Filepath build error
2021-10-04 22:08:15 -07:00
Justin
4eb43adef2
Merge branch 'nushell:main' into main
2021-10-04 22:02:43 -07:00
jacremer
0ef0588e29
mv clippy suggestions
2021-10-04 21:40:26 -07:00
JT
80e7a8d594
Update mv.rs
2021-10-05 16:58:49 +13:00
xiuxiu62
1b96da5e5b
add custom filesystem shell errors
2021-10-04 20:43:07 -07:00
JT
31ce8c1e33
Variable completions and better ls
2021-10-05 15:46:24 +13:00
JT
535ece4e76
Add unit parsing and eval support
2021-10-05 15:27:39 +13:00
JT
c884d5ca31
Better completions for external args
2021-10-05 10:50:46 +13:00
JT
f80e9d4b60
Merge pull request #91 from nushell/list_completions
...
Use list completions and better expansion
2021-10-05 10:44:26 +13:00
JT
26166192e5
Merge pull request #89 from kubouch/hide-import-patterns
...
Add import patterns to 'hide'
2021-10-05 10:44:13 +13:00
JT
7c2bf68d45
Use list completions and better expansion
2021-10-05 10:37:32 +13:00
Jakub Žádník
6f5f1fa43a
Clippy
2021-10-04 22:37:43 +03:00
JT
a88058006a
Add path completions
2021-10-05 08:21:31 +13:00
Jakub Žádník
9737d4a614
Change comments
2021-10-04 20:33:27 +03:00
Jakub Žádník
4dacfaa44a
Add import pattern support to 'hide'
2021-10-04 20:08:24 +03:00
xiuxiu62
b2148e32b8
make mv parameters required
2021-10-04 05:13:47 -07:00
xiuxiu62
e325fd114d
port the mv command
2021-10-04 04:32:08 -07:00
Tanishq Kancharla
dfd321a679
Merge branch 'main' into source-command
2021-10-03 14:25:00 -04:00
Tanishq Kancharla
909b7d2160
no-op
2021-10-03 14:23:23 -04:00
JT
75e323ee35
Lines shouldn't trim
2021-10-03 10:56:11 +13:00
JT
758fce8ae3
Merge pull request #86 from nushell/add_cd
...
Add simple cd
2021-10-03 09:20:28 +13:00
JT
91090e1db1
Add simple cd
2021-10-03 09:16:37 +13:00
JT
1d7ab28a0f
Merge pull request #74 from kubouch/module-export
...
Modules: export & hide
2021-10-03 06:25:43 +13:00
JT
b5ec9e0360
Update mod.rs
2021-10-03 06:16:02 +13:00
JT
e4e1b7a11e
Merge pull request #85 from stormasm/cargo-serde-derive
...
add serde derive to Cargo.toml so nu-protocol compiles standalone
2021-10-03 06:09:11 +13:00
Michael Angerman
be68b84473
add serde derive feature to Cargo.toml so nu-protocol compiles stand alone
2021-10-02 10:02:11 -07:00
Jakub Žádník
81cd03626d
Merge branch 'main' into module-export
2021-10-02 18:53:35 +03:00
Fernando Herrera
6f4df31927
removed comments
2021-10-02 14:16:37 +01:00
Fernando Herrera
03339beae1
prompt with env variable
2021-10-02 14:10:28 +01:00
JT
63a0aa6088
Let strings be cell paths
2021-10-02 18:43:43 +13:00
JT
6b76dd7cd7
Add select
2021-10-02 17:55:05 +13:00
JT
5843acec02
Add wrap and get and cell_path parsing
2021-10-02 15:59:11 +13:00
Tanishq Kancharla
8ef16c6da6
add source command
2021-10-01 22:25:35 -04:00
Tanishq Kancharla
e1a0ad2987
fix more merge conflicts
2021-10-01 22:24:43 -04:00
Tanishq Kancharla
2d4e471052
fix more merge conflicts
2021-10-01 22:17:32 -04:00
Tanishq Kancharla
16c60f44d5
merge w/ upstream
2021-10-01 22:09:16 -04:00
Tanishq Kancharla
adb92b970e
nothing
2021-10-01 22:07:17 -04:00
Jakub Žádník
6595c06598
Relax panic into error
...
Convert the panic when declaration cannot find predeclaration into an
error. This error is already covered and reported in the predeclaration
phase.
2021-10-02 03:42:35 +03:00
JT
c5e9ff5f14
add ps and early help
2021-10-02 10:53:13 +13:00
Jakub Žádník
fb0f83e574
Disallow hiding the same def twice; Add tests
...
Tests got removed after rebase.
2021-10-02 00:12:30 +03:00
Jakub Žádník
891d79d2aa
Fmt and misc fixes after rebase
2021-10-01 23:30:56 +03:00
Jakub Žádník
25b05dec9e
Fix panic on double def; Tests; Double def error
...
* Fixes a panic with defining two commands with the same name caused by
declaration not found after predeclaration.
* Adds a new error if a custom command is defined more than once in one
block.
* Add some tests
2021-10-01 23:25:24 +03:00
Jakub Žádník
2af8116f50
Fix hiding logic; Fix hiding with predecls
...
* Hiding logic is simplified and fixed so you can hide and unhide the
same def repeatedly.
* Separates predeclared ids into its own data structure to protect them
from hiding. Otherwise, you could hide the predeclared variable and
the actual def would panic.
2021-10-01 23:24:57 +03:00
Jakub Žádník
aa06a71e1f
Move new commands to the new structure
2021-10-01 23:24:57 +03:00
Jakub Žádník
244289c901
Add missing file
2021-10-01 23:24:57 +03:00
Jakub Žádník
7488254cca
Implement a rough version of 'hide'
...
'hide' command is used to undefine custom commands
2021-10-01 23:24:54 +03:00
Jakub Žádník
3cbf99053f
Throw an error if using export outside of module
2021-10-01 23:21:30 +03:00
Jakub Žádník
93521da9d8
Add 'export def' command
2021-10-01 23:21:28 +03:00
Jakub Žádník
561feff365
Introduce 'export' keyword
2021-10-01 23:19:39 +03:00
Jakub Žádník
1b89ccf25b
Add comment
2021-10-01 23:19:39 +03:00
JT
503939dcbe
add sys command
2021-10-01 19:53:47 +13:00
JT
d6e24cceb4
add a vertical record view
2021-10-01 19:01:22 +13:00
JT
db3e9efc4b
fix warnings
2021-10-01 18:20:25 +13:00
JT
3e232a5db8
Add 'from json'
2021-10-01 18:11:49 +13:00
Tanishq Kancharla
e00755a2e9
fix compile errors
2021-09-30 23:04:56 -04:00
JT
8250b44ce5
moved commands
2021-09-30 07:25:05 +13:00
JT
f0d5e2dcf1
Prepare nu_commands for porting
2021-09-30 07:17:51 +13:00
Tanishq Kancharla
2b5ef1b2d7
Removed extra file
2021-09-27 08:10:45 -04:00
Tanishq Kancharla
719920fa37
tried to move source command into parser (still doesn't compile)
2021-09-27 08:10:18 -04:00
JT
84d0e0a059
More forgiving def parse
2021-09-27 14:03:50 +13:00
JT
0a48bc973d
Merge pull request #72 from nushell/import_patterns
...
Add import lists
2021-09-27 13:32:36 +13:00
JT
0108a935ed
add import lists
2021-09-27 13:23:22 +13:00
Jakub Žádník
9ee4dc49ee
Fix wrong error span
2021-09-27 00:02:20 +03:00
JT
abb0d7bd22
Add support for module imports
2021-09-27 07:39:19 +13:00
JT
47421e9ca7
Merge pull request #69 from kubouch/simple-module
...
Primitive module implementation
2021-09-27 05:14:23 +13:00
Jakub Žádník
3f8f3ecf9a
Fmt
2021-09-26 14:12:39 +03:00
Jakub Žádník
f57f7b2def
Allow adding definitions from module into scope
2021-09-26 13:53:52 +03:00
Jakub Žádník
9e176674a5
Start parsing 'use'; Add Use command
2021-09-26 13:25:52 +03:00
Jakub Žádník
57a07385ac
Add leftover Module command file
2021-09-26 13:25:37 +03:00
Jakub Žádník
12cf1a8f83
Allow adding module blocks to engine state
2021-09-26 12:12:32 +03:00
Jakub Žádník
e9f1575924
Add a module command
2021-09-26 01:59:18 +03:00
JT
abac7e3795
improve table for lists
2021-09-26 07:07:37 +13:00
Fernando Herrera
d9c42eb194
contents declaration
2021-09-25 17:28:15 +01:00
Fernando Herrera
25a776c36b
trim lines in command
2021-09-25 16:45:02 +01:00
Fernando Herrera
cf60f72452
table as string output
2021-09-25 15:47:23 +01:00
Jakub Žádník
a176f12c9e
Start simple module parsing
2021-09-25 17:14:20 +03:00
Fernando Herrera
767d822cbf
change line format for test
2021-09-24 13:20:50 +01:00
Fernando Herrera
b4977f1515
better print out for stream output
2021-09-24 13:03:39 +01:00
JT
6c589affe7
Merge pull request #61 from elferherrera/externals
...
Externals with redirection
2021-09-24 10:26:38 +12:00
Fernando Herrera
cb9db792a6
filtering empty lines
2021-09-23 20:44:50 +01:00
Fernando Herrera
04990eeba4
allow collect warning
2021-09-23 20:39:42 +01:00
Fernando Herrera
772f8598dd
lines command
2021-09-23 20:03:08 +01:00
Fernando Herrera
36c32e9832
input from ValueStream
2021-09-23 18:01:20 +01:00
Fernando Herrera
660e8b5b73
external with redirection
2021-09-23 17:42:03 +01:00
Kat Marchán
5d442a287f
deps: bump to miette 3.0 mainline
2021-09-22 16:50:57 -07:00
JT
0ccbebee7a
multiline validation
2021-09-22 17:29:53 +12:00
Kat Marchán
2553da3dc4
bump miette to fix multi-file rendering bug
2021-09-21 17:57:16 -07:00
Kat Marchán
a7ecf7af90
add magical debugging code to SourceCode impl for future debugging
2021-09-21 17:54:20 -07:00
Kat Marchán
32f39c2fb8
use miette's new panic hook
2021-09-21 12:47:52 -07:00
Kat Marchán
c87414e462
Fix issue with unexpected EOF rendering in miette
2021-09-21 09:30:43 -07:00
JT
3c18cac134
use the fancy
2021-09-21 16:10:29 +12:00
JT
4841d62d76
Add some improvements to errors
2021-09-21 16:03:06 +12:00
JT
e5aa8b9d3f
Merge pull request #52 from zkat/main
...
replace codespan-reporting with miette 3.0
2021-09-21 12:58:14 +12:00
Kat Marchán
a1d6cefdf8
replace codespan-reporting with miette 3.0
2021-09-20 17:14:20 -07:00
Fernando Herrera
29771c7d23
clippy errors
2021-09-20 10:42:03 +01:00
Fernando Herrera
cb0914ecb0
remove enter scope
2021-09-20 10:32:55 +01:00
Fernando Herrera
672dd5a868
external with input
2021-09-19 22:48:33 +01:00
Fernando Herrera
6731e3542d
clippy errors
2021-09-19 22:05:24 +01:00
Fernando Herrera
5a6aebfcb2
clippy errors
2021-09-19 21:09:11 +01:00
Fernando Herrera
96af23f370
clippy errors
2021-09-19 20:41:35 +01:00
Fernando Herrera
bafc50fd5c
external command
2021-09-19 20:29:58 +01:00
Fernando Herrera
1a9247b77f
Merge branch 'main' of https://github.com/nushell/engine-q into externals
2021-09-14 07:19:31 +01:00
JT
b4f918b889
Very early proof-of-concept git branch completion
2021-09-14 16:59:46 +12:00
Fernando Herrera
7aa1d8ac2a
error check on def and alias
2021-09-13 20:59:11 +01:00
JT
d7a3c7522b
Fix test
2021-09-13 20:19:05 +12:00
JT
4dfde7393b
Merge branch 'main' into block_param_types
2021-09-13 19:59:18 +12:00
JT
32c1f0c8d4
better it detection and block params in shapes
2021-09-13 19:54:13 +12:00
JT
eb67eab122
WIP
2021-09-13 19:31:11 +12:00
JT
d88e46d2d1
Merge pull request #45 from kubouch/left-unbounded-ranges
...
Allow parsing left-unbounded range (..10)
2021-09-13 05:01:07 +12:00
JT
caa6236f1f
Merge pull request #44 from kubouch/float-ranges
...
Floating point ranges
2021-09-13 04:59:51 +12:00
JT
f459f77335
Merge pull request #40 from elferherrera/parse-error
...
Parse errors for def, let and alias
2021-09-13 04:58:25 +12:00
Fernando Herrera
66c58217af
change message
2021-09-12 16:36:16 +01:00
Fernando Herrera
8f07f40f22
external call
2021-09-12 16:34:43 +01:00
Jakub Žádník
e6a2e27e33
Fix failing compilation after rebase
2021-09-12 15:57:49 +03:00
Jakub Žádník
8577d3ff41
Check for left-unbounded range before external cmd
2021-09-12 15:56:58 +03:00
Jakub Žádník
78054a5352
Allow parsing left-unbounded range (..10)
...
It is implemented as a preliminary check when parsing a call and relies
on a fact that a token that successfully parses as a range is unlikely
to be a valid path or command name.
2021-09-12 15:56:58 +03:00
Jakub Žádník
ce0b5bf4ab
Add test for float ranges
2021-09-12 15:36:54 +03:00
Jakub Žádník
9936946eb5
Fmt
2021-09-12 14:58:32 +03:00
Jakub Žádník
013b12a864
Do not allow precision interval to rach < epsilon
2021-09-12 14:55:11 +03:00
Jakub Žádník
2f04c172fe
Add floating point support for ranges
2021-09-12 14:12:53 +03:00
JT
648fe052db
Merge branch 'main' into wip
2021-09-12 09:26:47 +12:00
JT
55aa70c88a
WIP
2021-09-12 09:26:35 +12:00
Fernando Herrera
9c98783917
clippy correcgtions
2021-09-11 13:16:40 +01:00
Fernando Herrera
4b8ba29cdb
check for = before internal parsing
2021-09-11 13:07:19 +01:00
Jakub Žádník
4749776984
Add stepping to ranges & enable reverse ranges
...
Follows the following syntax: <start>..<next-value>..<end>
2021-09-11 14:28:46 +03:00
Fernando Herrera
47ee50072e
Merge branch 'main' of https://github.com/nushell/engine-q into parse-error
2021-09-11 08:26:29 +01:00
Fernando Herrera
198c884158
change name in error
2021-09-11 08:22:41 +01:00
Tanishq Kancharla
1d945d8ce3
added source command
2021-09-11 00:54:24 -04:00
JT
bfd05772ef
Improve completions inside of a pipeline
2021-09-10 20:07:18 +12:00
Fernando Herrera
9a16a8fd06
corrected error check
2021-09-10 08:44:31 +01:00
Fernando Herrera
2ea19aeac0
Merge branch 'main' of https://github.com/nushell/engine-q into parse-error
2021-09-10 08:28:58 +01:00
Fernando Herrera
0794ebf5fa
error parsing for def, alias and let
2021-09-10 08:28:43 +01:00
JT
26d50ebcd5
Add a very silly table
2021-09-10 14:27:12 +12:00
JT
c1194b3d1e
Add a very silly ls
2021-09-10 13:09:54 +12:00
JT
16baf5e16a
Add a very silly ls
2021-09-10 13:06:44 +12:00
JT
abda6f148c
Finish up completions
2021-09-10 10:09:40 +12:00
JT
bb6781a3b1
Add row conditions
2021-09-10 09:47:20 +12:00
JT
2d7192e390
Add parser README, some parser fixups
2021-09-09 06:54:27 +12:00
Tanishq Kancharla
d35a58e05c
Remove unused imports
2021-09-07 22:32:28 -04:00
Tanishq Kancharla
ecbe7bf8d7
move value into its own folder
2021-09-07 22:26:57 -04:00
JT
6dd9f05ea1
Add an experimental record iteration
2021-09-08 10:00:20 +12:00
JT
a8646f94ab
Add cell paths for streams
2021-09-07 19:35:59 +12:00
JT
b0ab78a767
Switch tables to list/streams of records
2021-09-07 19:07:11 +12:00
JT
e00da070fd
Fail more gently for bad list/table parses
2021-09-07 15:56:30 +12:00
JT
bdce34676a
Allow rest vars to have a custom name
2021-09-07 15:37:02 +12:00
JT
3b7d7861e3
Add cell paths
2021-09-07 10:02:24 +12:00
Fernando Herrera
f7a19d37c6
one parser function
2021-09-06 21:41:30 +01:00
JT
4ce9a5c894
Make variable assignment convert streams to full values
2021-09-07 06:05:46 +12:00
JT
a1f7a3c17b
improve int division to be more nushell-like
2021-09-06 17:35:58 +12:00
JT
3b99ce71a0
add simple value iteration
2021-09-06 16:16:32 +12:00
JT
96b0edf9b0
range iteration
2021-09-06 16:07:48 +12:00
JT
979faf853a
Block params
2021-09-06 14:20:02 +12:00
JT
aaee3a8b61
WIP
2021-09-06 11:16:27 +12:00
Fernando Herrera
b3d287815d
updated dependencies
2021-09-05 20:06:57 +01:00
JT
57677a50b5
Fix #15
2021-09-06 06:44:18 +12:00
JT
6ebc97dec2
Update parser.rs
2021-09-06 06:09:36 +12:00
Jakub Žádník
56c8987e0f
Add '.' and '-' to restricted characters
...
This means that commands cannot start with these characters.
However, we get the following benefits:
* Negative numbers > -10
* Ranges with negative numbers > -10..-1
* Left-unbounded ranges > ..10
2021-09-05 20:33:53 +03:00
Jakub Žádník
7ae4ca88b6
"Fix" failing CI
2021-09-05 11:03:04 +03:00
Jakub Žádník
f0d469f1d4
Fix clippy warnings
2021-09-05 01:40:15 +03:00
Jakub Žádník
6b4fee88c9
Fmt
2021-09-05 01:35:08 +03:00
Jakub Žádník
672fa852b3
Add some tests to range parsing
2021-09-05 01:25:31 +03:00
Jakub Žádník
0b412cd6b3
Add support for positive integer ranges
...
Including support for variables and subexpressions as range bounds.
2021-09-05 00:52:57 +03:00
Fernando Herrera
d6b1ff932a
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 09:20:35 +01:00
JT
26b1f022b7
fixup
2021-09-04 20:19:07 +12:00
Fernando Herrera
ab307c8d38
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 09:10:38 +01:00
Fernando Herrera
a3d4794341
moved test to protocol
2021-09-04 09:10:31 +01:00
JT
25c7d8ead6
Merge pull request #13 from jntrnr/ci
...
Add CI
2021-09-04 20:09:05 +12:00
JT
d9cff4238d
clippy
2021-09-04 19:59:38 +12:00
Fernando Herrera
ca8d311c78
Merge branch 'main' of https://github.com/jonathandturner/engine-q into similar-name
2021-09-04 08:45:55 +01:00
Fernando Herrera
acc035dbef
signature check for similar name
2021-09-04 08:45:49 +01:00
JT
5e33b8536b
Add discrete list/table
2021-09-04 18:52:28 +12:00
JT
74bb2af3e1
Fix up block parse recovery
2021-09-04 08:58:44 +12:00
JT
b20c4047d4
Some cleanup, better subexpressions
2021-09-03 19:35:29 +12:00
JT
82cf6caba4
Add do
2021-09-03 16:01:45 +12:00
JT
bc3f820227
Merge pull request #10 from jntrnr/value_streams_in_value
...
Value streams in value
2021-09-03 15:49:27 +12:00
JT
12d80c2732
Fix test
2021-09-03 15:49:14 +12:00
JT
6c0ce95d0f
Add simple each
2021-09-03 15:45:34 +12:00
JT
750502c870
Fix up for_in
2021-09-03 14:57:18 +12:00
JT
df63490266
Fix up calls and pipelines
2021-09-03 14:15:01 +12:00
JT
7c8504ea24
Add commands
2021-09-03 10:58:15 +12:00
JT
94687a7603
Back to working state
2021-09-03 06:21:37 +12:00
JT
e1be8f61fc
WIP
2021-09-02 20:25:22 +12:00
JT
3d252a9797
Add nu-protocol
2021-09-02 13:29:43 +12:00
JT
c4c4d82bf4
Try putting streams in Value
2021-09-02 09:20:53 +12:00
Fernando Herrera
4ed79614ac
removed unused empty function
2021-09-01 21:34:16 +01:00
Fernando Herrera
73f6a57b12
upper comments get attached to command
2021-09-01 21:05:37 +01:00
Fernando Herrera
5da2ab1b7d
comments with a newline dont get together
2021-08-31 20:33:41 +01:00
JT
d0be193307
Merge pull request #7 from elferherrera/tests
...
Tests for lex and lite parser
2021-08-31 12:07:46 +12:00
Fernando Herrera
b3fb106cce
tests for lex and lite parser
2021-08-30 19:36:07 +01:00
JT
46d2efca13
Fix table parsing
2021-08-29 07:17:30 +12:00
JT
24cd1b591c
Update todo
2021-08-27 14:30:10 +12:00
JT
bb9e6731ea
More parsing fixes with tests
2021-08-27 11:44:08 +12:00
JT
5dd5a89775
Fix condition parsing for if
2021-08-27 09:48:27 +12:00
JT
35c3622405
Add a few operators. Needs parser work
2021-08-26 07:29:36 +12:00
JT
739425431a
improve type inference
2021-08-17 12:26:05 +12:00
JT
dda6554990
Fix up subcommand alias colours
2021-08-17 11:04:45 +12:00
JT
2f43cc353b
Fix some expects, add subcommand alias
2021-08-17 11:00:00 +12:00
JT
ceea7e5aeb
Remove lifetime from eval state
2021-08-16 14:30:31 +12:00
JT
579814895d
Fix up eval params and refactor
2021-08-16 10:33:34 +12:00
JT
1355a5dd33
refactor to subcrates
2021-08-11 06:51:08 +12:00